]> 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>
Sun, 28 Jan 2018 08:01:03 +0000 (09:01 +0100)
Fixes: #11000
(cherry picked from commit e2160ec960de2f48e5b61dfab339902426d075f8)

src/frontends/qt4/GuiBox.cpp
status.22x

index ee407ec26f63a04c5c54bdc875d5937e263f5e38..84708f7a0e166338cf2a9b9d78818f2a839fd628 100644 (file)
@@ -440,7 +440,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
@@ -466,7 +466,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 =
index a5af805b13fcd2c4f579e408006b9b05a2e9d70e..4cf4c24938962384c23648eb2d1f685aff59ac7d 100644 (file)
@@ -106,6 +106,9 @@ What's new
 - Fix crash when changing preview preferences while previewable
   external inset is open (bug 10785).
 
+- Fix problem with decimal special height/width values in the Box
+  dialog in some localizations (bug 11000).
+
 - Remove duplicate entries from the Symbols dialog (bug 10644).
 
 - Always show the float type in the float inset label (bug 10618).