mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 08:28:25 +00:00
Remove useless breaks
This commit is contained in:
parent
2ab39fe121
commit
66403b4449
@ -237,22 +237,16 @@ docstring InsetNewpage::insetLabel() const
|
|||||||
switch (params_.kind) {
|
switch (params_.kind) {
|
||||||
case InsetNewpageParams::NEWPAGE:
|
case InsetNewpageParams::NEWPAGE:
|
||||||
return _("New Page");
|
return _("New Page");
|
||||||
break;
|
|
||||||
case InsetNewpageParams::PAGEBREAK:
|
case InsetNewpageParams::PAGEBREAK:
|
||||||
return _("Page Break");
|
return _("Page Break");
|
||||||
break;
|
|
||||||
case InsetNewpageParams::CLEARPAGE:
|
case InsetNewpageParams::CLEARPAGE:
|
||||||
return _("Clear Page");
|
return _("Clear Page");
|
||||||
break;
|
|
||||||
case InsetNewpageParams::CLEARDOUBLEPAGE:
|
case InsetNewpageParams::CLEARDOUBLEPAGE:
|
||||||
return _("Clear Double Page");
|
return _("Clear Double Page");
|
||||||
break;
|
|
||||||
case InsetNewpageParams::NOPAGEBREAK:
|
case InsetNewpageParams::NOPAGEBREAK:
|
||||||
return _("No Page Break");
|
return _("No Page Break");
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
return _("New Page");
|
return _("New Page");
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -263,12 +257,10 @@ ColorCode InsetNewpage::ColorName() const
|
|||||||
case InsetNewpageParams::PAGEBREAK:
|
case InsetNewpageParams::PAGEBREAK:
|
||||||
case InsetNewpageParams::NOPAGEBREAK:
|
case InsetNewpageParams::NOPAGEBREAK:
|
||||||
return Color_pagebreak;
|
return Color_pagebreak;
|
||||||
break;
|
|
||||||
case InsetNewpageParams::NEWPAGE:
|
case InsetNewpageParams::NEWPAGE:
|
||||||
case InsetNewpageParams::CLEARPAGE:
|
case InsetNewpageParams::CLEARPAGE:
|
||||||
case InsetNewpageParams::CLEARDOUBLEPAGE:
|
case InsetNewpageParams::CLEARDOUBLEPAGE:
|
||||||
return Color_newpage;
|
return Color_newpage;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
// not really useful, but to avoids gcc complaints
|
// not really useful, but to avoids gcc complaints
|
||||||
return Color_newpage;
|
return Color_newpage;
|
||||||
|
Loading…
Reference in New Issue
Block a user