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) {
|
||||
case InsetNewpageParams::NEWPAGE:
|
||||
return _("New Page");
|
||||
break;
|
||||
case InsetNewpageParams::PAGEBREAK:
|
||||
return _("Page Break");
|
||||
break;
|
||||
case InsetNewpageParams::CLEARPAGE:
|
||||
return _("Clear Page");
|
||||
break;
|
||||
case InsetNewpageParams::CLEARDOUBLEPAGE:
|
||||
return _("Clear Double Page");
|
||||
break;
|
||||
case InsetNewpageParams::NOPAGEBREAK:
|
||||
return _("No Page Break");
|
||||
break;
|
||||
default:
|
||||
return _("New Page");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@ -263,12 +257,10 @@ ColorCode InsetNewpage::ColorName() const
|
||||
case InsetNewpageParams::PAGEBREAK:
|
||||
case InsetNewpageParams::NOPAGEBREAK:
|
||||
return Color_pagebreak;
|
||||
break;
|
||||
case InsetNewpageParams::NEWPAGE:
|
||||
case InsetNewpageParams::CLEARPAGE:
|
||||
case InsetNewpageParams::CLEARDOUBLEPAGE:
|
||||
return Color_newpage;
|
||||
break;
|
||||
}
|
||||
// not really useful, but to avoids gcc complaints
|
||||
return Color_newpage;
|
||||
|
Loading…
Reference in New Issue
Block a user