--- LibreCAD-2.2.0.2/librecad/src/lib/gui/rs_graphicview.cpp.orig 2023-07-29 16:33:29.000000000 +0200 +++ LibreCAD-2.2.0.2/librecad/src/lib/gui/rs_graphicview.cpp 2023-08-20 16:52:41.606143854 +0200 @@ -1448,7 +1448,7 @@ RS_Color(255,255,255)); // don't paint boundaries if zoom is to small - if (qMin(fabs(printAreaW/numX), fabs(printAreaH/numY)) > 2) { + if (qMin(fabs((double)printAreaW/numX), fabs((double)printAreaH/numY)) > 2) { // boundaries between pages: for (int pX = 1; pX < numX; pX++) { double offset = ((double)printAreaW*pX)/numX;