]> git.lyx.org Git - features.git/commitdiff
Use proper localization chain for Box special width/height
authorJuergen Spitzmueller <spitz@lyx.org>
Sat, 27 Jan 2018 11:26:01 +0000 (12:26 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Sat, 27 Jan 2018 17:25:52 +0000 (18:25 +0100)
Fixes: #11000
(cherry picked from commit e2160ec960de2f48e5b61dfab339902426d075f8)

src/frontends/qt4/GuiBox.cpp

index 8a6763e54aed8bc202d102f7a0f72bcff97fcc7a..3d1010b690fd57c178d7f7fc76d8ebdeadb43b1b 100644 (file)
@@ -439,7 +439,7 @@ docstring GuiBox::dialogToParams() const
                if (ids_spec_.contains(unit) && !isValidLength(fromqstr(value))) {
                        params.special = fromqstr(unit);
                        // Note: the unit is simply ignored in this case
-                       params.width = Length(value.toDouble(), Length::IN);
+                       params.width = Length(widgetToDouble(widthED), Length::IN);
                } else {
                        params.special = "none";
                        // we must specify a valid length in this case
@@ -465,7 +465,7 @@ docstring GuiBox::dialogToParams() const
                if (ids_spec_.contains(unit) && !isValidLength(fromqstr(value))) {
                        params.height_special = fromqstr(unit);
                        // Note: the unit is simply ignored in this case
-                       params.height = Length(value.toDouble(), Length::IN);
+                       params.height = Length(widgetToDouble(heightED), Length::IN);
                } else {
                        params.height_special = "none";
                        params.height =