mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Use proper localization chain for Box special width/height
Fixes: #11000
This commit is contained in:
parent
8386a35e02
commit
e2160ec960
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user