summaryrefslogtreecommitdiff
path: root/src/drivers/PostScript/Fl_PostScript.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/PostScript/Fl_PostScript.cxx')
-rw-r--r--src/drivers/PostScript/Fl_PostScript.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/drivers/PostScript/Fl_PostScript.cxx b/src/drivers/PostScript/Fl_PostScript.cxx
index 3e5ec3d27..df45eaf69 100644
--- a/src/drivers/PostScript/Fl_PostScript.cxx
+++ b/src/drivers/PostScript/Fl_PostScript.cxx
@@ -673,7 +673,8 @@ int Fl_PostScript_Graphics_Driver::start_postscript (int pagecount,
left_margin = 12;
top_margin = 12;
}
- page_format_ = (enum Fl_Paged_Device::Page_Format)((int)format | (int)layout);
+ // combine the format and layout information
+ page_format_ = ((int)format | (int)layout);
if (layout & Fl_Paged_Device::LANDSCAPE){
ph_ = Fl_Paged_Device::page_formats[format].width;
pw_ = Fl_Paged_Device::page_formats[format].height;
@@ -1491,7 +1492,8 @@ int Fl_PostScript_Graphics_Driver::start_postscript(int pagecount,
left_margin = 12;
top_margin = 12;
}
- page_format_ = (enum Fl_Paged_Device::Page_Format)(format | layout);
+ // combine the format and layout information
+ page_format_ = ((int)format | (int)layout);
if (layout & Fl_Paged_Device::LANDSCAPE){
ph_ = Fl_Paged_Device::page_formats[format].width;
pw_ = Fl_Paged_Device::page_formats[format].height;