diff layer/Colour3DPlotRenderer.cpp @ 1550:e95cefd4aa81

Further replacements of QRect::right() with the right (arf) calculation
author Chris Cannam
date Thu, 31 Oct 2019 15:32:13 +0000
parents bfd8b22fd67c
children 8b78b3c330fb
line wrap: on
line diff
--- a/layer/Colour3DPlotRenderer.cpp	Thu Oct 31 15:32:01 2019 +0000
+++ b/layer/Colour3DPlotRenderer.cpp	Thu Oct 31 15:32:13 2019 +0000
@@ -480,7 +480,7 @@
     if (!model) return magRange;
     
     int x0 = rect.left();
-    int x1 = rect.right() + 1;
+    int x1 = x0 + rect.width();
 
     int h = v->getPaintHeight();