Increase max precision in the rotation tools to four digits so that rotations over 100 degrees aren't rounded to ints

Originally committed to SVN as r6090.
This commit is contained in:
Thomas Goyne 2011-12-22 21:23:26 +00:00
parent d9ab41468c
commit 965a292a05
2 changed files with 3 additions and 3 deletions

View File

@ -155,8 +155,8 @@ void VisualToolRotateXY::UpdateHold() {
angle_x = fmodf(angle_x + 360.f, 360.f);
angle_y = fmodf(angle_y + 360.f, 360.f);
SetSelectedOverride("\\frx", wxString::Format("(%0.3g)", angle_x));
SetSelectedOverride("\\fry", wxString::Format("(%0.3g)", angle_y));
SetSelectedOverride("\\frx", wxString::Format("%.4g", angle_x));
SetSelectedOverride("\\fry", wxString::Format("%.4g", angle_y));
}
void VisualToolRotateXY::UpdateDrag(feature_iterator feature) {

View File

@ -114,7 +114,7 @@ void VisualToolRotateZ::UpdateHold() {
angle = fmodf(angle + 360.f, 360.f);
SetSelectedOverride("\\frz", wxString::Format("(%0.3g)", angle));
SetSelectedOverride("\\frz", wxString::Format("%.4g", angle));
}
void VisualToolRotateZ::UpdateDrag(feature_iterator feature) {