mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 18:24:48 +00:00
Flotsam from Michael Schmidt's VSpace fixes...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8174 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
0aea5bd320
commit
00812b180b
@ -93,7 +93,7 @@ VSpace setVSpaceFromWidgets(int spacing,
|
|||||||
LengthCombo * unit,
|
LengthCombo * unit,
|
||||||
bool keep)
|
bool keep)
|
||||||
{
|
{
|
||||||
VSpace space = VSpace(VSpace::DEFSKIP);
|
VSpace space;
|
||||||
|
|
||||||
switch (spacing) {
|
switch (spacing) {
|
||||||
case 0:
|
case 0:
|
||||||
@ -157,7 +157,7 @@ void QVSpace::apply()
|
|||||||
// spacing
|
// spacing
|
||||||
// If a vspace choice is "Length" but there's no text in
|
// If a vspace choice is "Length" but there's no text in
|
||||||
// the input field, do not insert a vspace at all.
|
// the input field, do not insert a vspace at all.
|
||||||
if (dialog_->spacingCO->currentItem() == 6
|
if (dialog_->spacingCO->currentItem() == 5
|
||||||
&& dialog_->valueLE->text().isEmpty())
|
&& dialog_->valueLE->text().isEmpty())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -75,7 +75,7 @@ VSpace const setVSpaceFromWidgets(FL_OBJECT * choice_type,
|
|||||||
input_length && input_length->objclass == FL_INPUT &&
|
input_length && input_length->objclass == FL_INPUT &&
|
||||||
choice_length && choice_length->objclass == FL_CHOICE);
|
choice_length && choice_length->objclass == FL_CHOICE);
|
||||||
|
|
||||||
VSpace space = VSpace(VSpace::DEFSKIP);
|
VSpace space;
|
||||||
|
|
||||||
switch (fl_get_choice(choice_type)) {
|
switch (fl_get_choice(choice_type)) {
|
||||||
case 1:
|
case 1:
|
||||||
|
Loading…
Reference in New Issue
Block a user