Skip to content

Sketcher: When dimensioning, only digits before comma get selected #147

Description

@Columbus-droid

Problem description

When adding a new dimension with the dimensioning tool, instead of selecting the whole number, only the digits before the comma are selected. This leads to the following behavior:

  • meant to enter "42,42" but got "42,42,xyz" => AstoCAD immediately crashes
  • meant to enter "42" but got "42.xyz" => now the measurement is "wrong" because its made up of the intended value plus the values after the comma that did not get selected and therefore overwritten.

Workbench affected?

Sketcher

Steps to reproduce

  • Create a new sketch
  • Create some geometry like a line
  • Use the "Dimension" tool to dimension the geometry

Expected behavior

All digits should be selected so they are replaced on write

Screenshot from FreeCAD:

Image

Actual behavior

Instead of the whole dimension, only the digits before the comma are selected.

Screenshot from AstoCAD:

OS: openSUSE Tumbleweed (GNOME/gnome/wayland)
Architecture: x86_64
Version: 1.1.0dev.20260603 (Git shallow) AppImage
Build date: 2026/06/03 20:07:15
Build type: Release
Branch: (HEAD detached at 6259670)
Hash: 6259670
Python 3.11.14, Qt 6.8.3, Coin 4.0.3, Vtk 9.3.1, boost 1_86, Eigen3 3.4.0, PySide 6.8.3
shiboken 6.8.3, xerces-c 3.3.0, Clipper2 , IfcOpenShell 0.8.0, OCC 7.8.1
Locale: English/United Kingdom (en_GB)
Stylesheet/Theme/QtStyle: FreeCAD Dark.qss/Dark/
Navigation Style/Orbit Style/Rotation Mode: CAD/Rounded Arcball/Window center
Logical DPI/Physical DPI/Pixel Ratio: 96/86.3799/2
Installed mods:

  • FreeCAD-library

NOTE: I reset all settings to default before testing.

Image

Development version About Info (in Safe Mode)

OS: openSUSE Tumbleweed (GNOME/gnome/wayland)
Architecture: x86_64
Version: 1.2.0dev.20260602 (Git shallow) AppImage
Build date: 2026/06/02 19:21:10
Build type: Release
Branch: (HEAD detached at 07de249ec)
Hash: 07de249ec749d3fba6710c78da8bca7c66243347
Python 3.11.14, Qt 6.8.3, Coin 4.0.3, Vtk 9.3.1, boost 1_86, Eigen3 3.4.0, PySide 6.8.3
shiboken 6.8.3, xerces-c 3.3.0, Clipper2 , IfcOpenShell 0.8.2, OCC 7.8.1
Locale: English/United Kingdom (en_GB)
Stylesheet/Theme/QtStyle: FreeCAD.qss/FreeCAD Dark/
Navigation Style/Orbit Style/Rotation Mode: CAD/Free Turntable/Drag at cursor
Logical DPI/Physical DPI/Pixel Ratio: 96/86.3799/2

Last known good version (optional)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions