Fl_WinAPI_Printer_Driver::end_page(): make sure rotation stops when the page ends

This commit is contained in:
ManoloFLTK
2019-07-13 19:50:46 +02:00
parent 58dad3bda2
commit af5fb2aeb3
@@ -3,7 +3,7 @@
//
// Printing support for Windows for the Fast Light Tool Kit (FLTK).
//
// Copyright 2010-2018 by Bill Spitzak and others.
// Copyright 2010-2019 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
@@ -275,6 +275,9 @@ int Fl_WinAPI_Printer_Driver::end_page (void)
fl_alert ("EndPage error %d", prerr);
rsult = 1;
}
else { // make sure rotation is not transferred to next page
ModifyWorldTransform(hPr, NULL, MWT_IDENTITY);
}
}
return rsult;
}