From a335c22d85086952ecfc2803b62ab4c6b34c0cfa Mon Sep 17 00:00:00 2001 From: natureh Date: Sat, 21 Jul 2012 01:22:38 +0200 Subject: [PATCH] Last minute minor bugfix of the patch from issue 1359 --- rtgui/mydiagonalcurve.cc | 2 +- rtgui/myflatcurve.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rtgui/mydiagonalcurve.cc b/rtgui/mydiagonalcurve.cc index b0fe4d66e..193c7dbef 100644 --- a/rtgui/mydiagonalcurve.cc +++ b/rtgui/mydiagonalcurve.cc @@ -138,7 +138,7 @@ void MyDiagonalCurve::draw (int handle) { return; // re-calculate curve if dimensions changed - if (prevGraphW != graphW || prevGraphH != graphH || int(point.size()) != graphW/4) + if (prevGraphW != graphW || prevGraphH != graphH || int(point.size()) != graphW-2) interpolate (); Gtk::StateType state = !is_sensitive() ? Gtk::STATE_INSENSITIVE : Gtk::STATE_NORMAL; diff --git a/rtgui/myflatcurve.cc b/rtgui/myflatcurve.cc index 2e04f6d46..9e347620a 100644 --- a/rtgui/myflatcurve.cc +++ b/rtgui/myflatcurve.cc @@ -96,7 +96,7 @@ void MyFlatCurve::draw () { return; // re-calculate curve if dimensions changed - if (prevGraphW != graphW || prevGraphH != graphH || (int)point.size() != graphW/4) + if (prevGraphW != graphW || prevGraphH != graphH || (int)point.size() != graphW-2) interpolate (); double innerW = double(graphW-2);