diff layer/RegionLayer.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 e6362cf5ff1d
children
line wrap: on
line diff
--- a/layer/RegionLayer.cpp	Thu Oct 31 15:32:01 2019 +0000
+++ b/layer/RegionLayer.cpp	Thu Oct 31 15:32:13 2019 +0000
@@ -849,7 +849,8 @@
 
 //    Profiler profiler("RegionLayer::paint", true);
 
-    int x0 = rect.left() - 40, x1 = rect.right();
+    int x0 = rect.left() - 40;
+    int x1 = x0 + rect.width() + 80;
 
     sv_frame_t wholeFrame0 = v->getFrameForX(0);
     sv_frame_t wholeFrame1 = v->getFrameForX(v->getPaintWidth());