Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helper, shortcut & bug correction for "Circle with center & radius" tool #571

Merged
merged 2 commits into from Sep 16, 2015

Conversation

jerry-magnin
Copy link
Contributor

Help tip

When in mode "circle with center and radius", typing "radius"
in the command-line allow the user to set the radius without moving
hands off the keyboard, but the helper message didn't mentionned that
possibility.

Bug

When setting radius from commandline, pressing enter to validate
causes LibreCAD to draw a circle of selected radius at relative zero
position (if no mouse activity into the container) or crosshair
position (if mouse activity into the container).
I added a switch test to the trigger() method to test the mode, and
if the user is in mode "SetRadius", circle is not drawn & relative zero
is not moved.

Command shortcuts

circlecr and cc

Help tip : when in mode "circle with center and radius", typing "radius"
in the command-line allow the user to set the radius without moving
hands off the keyboard, but the helper message didn't mentionned that
possibility.

Bug : when setting radius from commandline, pressing enter to validate
causes LibreCAD to draw a circle of selected radius at relative zero
position (if no mouse activity into the container) or crosshair
position (if mouse activity into the container).
I added a `switch` test to the `trigger()` method to test the mode, and
if the user is in mode "SetRadius", circle is not drawn & relative zero
is not moved.

Command shortcuts: `circlecr` and `cc`

Conflicts:
	librecad/src/cmd/rs_commands.cpp
@dxli
Copy link
Member

dxli commented Sep 16, 2015

Thanks!

dxli added a commit that referenced this pull request Sep 16, 2015
Helper, shortcut & bug correction for "Circle with center & radius" tool
@dxli dxli merged commit ef90c06 into LibreCAD:master Sep 16, 2015
@jerry-magnin
Copy link
Contributor Author

You're welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants