diff --git a/src/lib/code128barcode.cpp b/src/lib/code128barcode.cpp --- a/src/lib/code128barcode.cpp +++ b/src/lib/code128barcode.cpp @@ -28,11 +28,11 @@ #include "bitvector_p.h" #include "prison_debug.h" -using namespace Prison; - #include #include +using namespace Prison; + enum { SymbolSize = 11, StopPatternSize = 13, @@ -79,7 +79,7 @@ QPainter p(&img); for (int i = 0; i < bits.size(); ++i) { if (bits.at(i)) - p.fillRect((QuietZone + i) * moduleSize, 0, moduleSize, img.height(), foregroundColor()); + p.fillRect(QRectF((QuietZone + i) * moduleSize, 0, moduleSize, img.height()), foregroundColor()); } return img;