Skip to content

Commit

Permalink
IntToWidth: fixed building
Browse files Browse the repository at this point in the history
  • Loading branch information
dxli committed Apr 8, 2024
1 parent e5850c5 commit 2d40e66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion librecad/src/lib/engine/rs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,5 @@ RS2::LineWidth RS2::intToLineWidth(int w) {
if (w <= 2)
return Width00;
auto it = g_int2LineWidth.find(w);
return (it != g_int2LineWidth.cend()) ? *it : Width00;
return (it != g_int2LineWidth.cend()) ? it->second : Width00;
}

0 comments on commit 2d40e66

Please sign in to comment.