From: Juergen Spitzmueller Date: Sat, 27 Jan 2018 11:26:01 +0000 (+0100) Subject: Use proper localization chain for Box special width/height X-Git-Tag: 2.2.4~28 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=a9eee8e1c0ae1dc9af0126e0274bcbb5e05ed6a2;p=features.git Use proper localization chain for Box special width/height Fixes: #11000 (cherry picked from commit e2160ec960de2f48e5b61dfab339902426d075f8) --- diff --git a/src/frontends/qt4/GuiBox.cpp b/src/frontends/qt4/GuiBox.cpp index ee407ec26f..84708f7a0e 100644 --- a/src/frontends/qt4/GuiBox.cpp +++ b/src/frontends/qt4/GuiBox.cpp @@ -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 = diff --git a/status.22x b/status.22x index a5af805b13..4cf4c24938 100644 --- a/status.22x +++ b/status.22x @@ -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).