From bf697ca7105152131db0cc3e7d6acc1e7bd429b4 Mon Sep 17 00:00:00 2001 From: Kacper Donat Date: Sat, 13 Dec 2025 17:33:12 +0100 Subject: [PATCH] Gui: Use largest possible marker if needed This is a quick and dirty fix for https://github.com/FreeCAD/FreeCAD/issues/22010 Basically if we want to use a bigger marker size than available, we use the biggest one available. This is not a good way to fix the issue - we should ensure that the marker size that the user requests is actually available - this, however, requires more significant changes to the code. --- src/Mod/Sketcher/Gui/EditModeCoinManager.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Mod/Sketcher/Gui/EditModeCoinManager.cpp b/src/Mod/Sketcher/Gui/EditModeCoinManager.cpp index 56eeedbc9c..56a7cf5ef9 100644 --- a/src/Mod/Sketcher/Gui/EditModeCoinManager.cpp +++ b/src/Mod/Sketcher/Gui/EditModeCoinManager.cpp @@ -1109,6 +1109,15 @@ void EditModeCoinManager::updateElementSizeParameters() if (it != supportedsizes.end()) { scaledMarkerSize = *it; } + else { + // This is a quick and dirty fix for https://github.com/FreeCAD/FreeCAD/issues/22010 + // + // Basically if we want to use a bigger marker size than available, we use the biggest one + // available. This is not a good way to fix the issue - we should ensure that the marker + // size that the user requests is actually available - this, however, requires more + // significant changes to the code. + scaledMarkerSize = *supportedsizes.rbegin(); + } drawingParameters.markerSize = scaledMarkerSize; updateInventorNodeSizes();