mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
GuiBox.cpp: addendum to [f04c7711/lyxgit]
- this was forgotten to commit; (without this we would get invalid LaTeX code when changing in the box dialog a makebox without a width to a minipage and press apply - a makebox required to specify a width, at least an invisible one like "0cm")
This commit is contained in:
parent
f04c7711b0
commit
472732f92d
@ -378,6 +378,9 @@ docstring GuiBox::dialogToParams() const
|
||||
params.width = Length(value.toDouble(), Length::IN);
|
||||
} else {
|
||||
params.special = "none";
|
||||
// we must specify a valid length in this case
|
||||
if (value.isEmpty())
|
||||
widthED->setText("0");
|
||||
params.width = Length(widgetsToLength(widthED, widthUnitsLC));
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user