From 2d40e66c0a2de93e04803a4ad3795dd0d8a4a870 Mon Sep 17 00:00:00 2001 From: Dongxu Li Date: Mon, 8 Apr 2024 01:04:42 -0400 Subject: [PATCH] IntToWidth: fixed building --- librecad/src/lib/engine/rs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/librecad/src/lib/engine/rs.cpp b/librecad/src/lib/engine/rs.cpp index f128546b15..1410fc128a 100644 --- a/librecad/src/lib/engine/rs.cpp +++ b/librecad/src/lib/engine/rs.cpp @@ -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; }