mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Get rid of the static_casts.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7142 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
954937fd33
commit
bd1f4fa8f2
@ -337,8 +337,8 @@ void QDocument::apply()
|
||||
params.float_placement = dialog_->floatModule->get();
|
||||
|
||||
// paper
|
||||
params.papersize2 = static_cast<BufferParams::VMARGIN_PAPER_TYPE>
|
||||
(dialog_->pageLayoutModule->papersizeCO->currentItem());
|
||||
params.papersize2 = BufferParams::VMARGIN_PAPER_TYPE(
|
||||
dialog_->pageLayoutModule->papersizeCO->currentItem());
|
||||
|
||||
params.paperwidth = widgetsToLength(dialog_->pageLayoutModule->paperwidthLE,
|
||||
dialog_->pageLayoutModule->paperwidthUnitCO);
|
||||
@ -364,7 +364,7 @@ void QDocument::apply()
|
||||
if (margin > 0) {
|
||||
margin = margin - 1;
|
||||
}
|
||||
params.paperpackage = static_cast<BufferParams::PAPER_PACKAGES>(margin);
|
||||
params.paperpackage = BufferParams::PAPER_PACKAGES(margin);
|
||||
|
||||
// set params.papersize from params.papersize2
|
||||
// and params.paperpackage
|
||||
|
Loading…
Reference in New Issue
Block a user