View Issue Details

IDProjectCategoryView StatusLast Update
0002860DraftBugpublic2017-01-15 19:55
Reportersimsiem Assigned Toyorik  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
OSUbuntuOS Version14.04.5 
Product Version0.17 
Summary0002860: Cannot create a Draft line with angle and length < 1
DescriptionThe task pane of the Draft Line tool offers to enter a point in X, Y and Z coordinates. The user can determine these coordinates by entering a length and an angle. According to the length and angle, FreeCAD updates the values for X, Y and Z.

However, if I enter a length value starting with 0, the updating of X, Y and Z stops. I can then enter any value in length and angle (even length > 1), but nothing happens. Only if I update X, Y or Z, change to the length value have an effect.

I tested this further with the following interesting observations. If I enter the length 077mm and add the comma after the zero in the end (to get 0,77mm), the updating works. Thus this seems to be a problem just when I enter 0. The algorithms seems to handle a zero in the wrong way (mathematical corner case).
Steps To ReproduceI am in the draft workbench with an empty file. There I do the following.

1. Select the line tool.
2. Select a start point anywhere.
3. Select the angle checkbox.
4. Set the angle to -75 deg (actually, the value does not matter).
5. Set the length to 0,2m.
6. Press enter and enter again to confirm this coordinate.

Nothing really happens. But if I do the same with a length of 200mm, a line is created. It also works for a length of 1m or 1,4m, for example. Thus it seems to be a problem with length < 1 (disregarding the unit of the length).
Additional InformationThe discussion started in the forum: http://forum.freecadweb.org/viewtopic.php?f=3&t=19876
TagsNo tags attached.
FreeCAD Information

Activities

There are no notes attached to this issue.

Related Changesets

FreeCAD: master 17c69213

2017-01-15 20:55:11

yorik

Details Diff
Draft: Fixed bug in line UI - fixes 0002860 Affected Issues
0002860
mod - src/Mod/Draft/DraftGui.py Diff File

Issue History

Date Modified Username Field Change
2017-01-15 16:24 simsiem New Issue
2017-01-15 19:55 yorik Changeset attached => FreeCAD Master master 17c69213
2017-01-15 19:55 yorik Assigned To => yorik
2017-01-15 19:55 yorik Status new => closed
2017-01-15 19:55 yorik Resolution open => fixed