diff -r 5445732f693f -r 4f40180b98dc src/eric7/Graphics/PixmapDiagram.py --- a/src/eric7/Graphics/PixmapDiagram.py Thu Sep 05 17:07:25 2024 +0200 +++ b/src/eric7/Graphics/PixmapDiagram.py Fri Sep 06 14:33:48 2024 +0200 @@ -434,7 +434,7 @@ - printer.pageLayout().fullRectPixels(printer.resolution()).x() ) marginX = ( - Preferences.getPrinter("LeftMargin") * int(printer.resolution() / 2.54) + int(Preferences.getPrinter("LeftMargin") * printer.resolution() / 2.54) - marginX ) marginY = ( @@ -442,21 +442,21 @@ - printer.pageLayout().fullRectPixels(printer.resolution()).y() ) marginY = ( - Preferences.getPrinter("TopMargin") * int(printer.resolution() / 2.54) + int(Preferences.getPrinter("TopMargin") * printer.resolution() / 2.54) - marginY ) width = ( printer.width() - marginX - - Preferences.getPrinter("RightMargin") * int(printer.resolution() / 2.54) + - int(Preferences.getPrinter("RightMargin") * printer.resolution() / 2.54) ) height = ( printer.height() - fontHeight - 4 - marginY - - Preferences.getPrinter("BottomMargin") * int(printer.resolution() / 2.54) + - int(Preferences.getPrinter("BottomMargin") * printer.resolution() / 2.54) ) # write a foot note