diff options
| author | Nicolas Dufour <nicoduf@yahoo.fr> | 2012-03-22 19:19:09 +0000 |
|---|---|---|
| committer | JazzyNico <nicoduf@yahoo.fr> | 2012-03-22 19:19:09 +0000 |
| commit | d622704efbe803d7e271bc41655dc4432a1d556e (patch) | |
| tree | 7089850074cf5568beaf3375dcff87bc3c57d264 /src/ui/dialog/guides.cpp | |
| parent | UI. Fix for bug #962002 (<image> context menu item Edit externally… ignores... (diff) | |
| download | inkscape-d622704efbe803d7e271bc41655dc4432a1d556e.tar.gz inkscape-d622704efbe803d7e271bc41655dc4432a1d556e.zip | |
UI. Patch for Bug #666370 (Not all units in the Object Transform dialog are translatable) by Fernando Lucchesi.
Fixed bugs:
- https://launchpad.net/bugs/666370
(bzr r11116)
Diffstat (limited to 'src/ui/dialog/guides.cpp')
| -rw-r--r-- | src/ui/dialog/guides.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/dialog/guides.cpp b/src/ui/dialog/guides.cpp index 61b4fe389..088290b6f 100644 --- a/src/ui/dialog/guides.cpp +++ b/src/ui/dialog/guides.cpp @@ -54,7 +54,7 @@ GuidelinePropertiesDialog::GuidelinePropertiesDialog(SPGuide *guide, SPDesktop * } bool GuidelinePropertiesDialog::_relative_toggle_status = false; // initialize relative checkbox status for when this dialog is opened for first time -Glib::ustring GuidelinePropertiesDialog::_angle_unit_status = "deg"; // initialize angle unit status +Glib::ustring GuidelinePropertiesDialog::_angle_unit_status = DEG; // initialize angle unit status GuidelinePropertiesDialog::~GuidelinePropertiesDialog() { // save current status @@ -87,7 +87,7 @@ void GuidelinePropertiesDialog::_modeChanged() _spin_button_x.setValue(0); } else { // absolute - _spin_angle.setValueKeepUnit(_oldangle, "deg"); + _spin_angle.setValueKeepUnit(_oldangle, DEG); _spin_button_x.setValueKeepUnit(_oldpos[Geom::X], "px"); _spin_button_y.setValueKeepUnit(_oldpos[Geom::Y], "px"); @@ -96,7 +96,7 @@ void GuidelinePropertiesDialog::_modeChanged() void GuidelinePropertiesDialog::_onApply() { - double deg_angle = _spin_angle.getValue("deg"); + double deg_angle = _spin_angle.getValue(DEG); if (!_mode) deg_angle += _oldangle; Geom::Point normal; |
