Last minute minor bugfix of the patch from issue 1359

This commit is contained in:
natureh 2012-07-21 01:22:38 +02:00
parent caf53b95a3
commit a335c22d85
2 changed files with 2 additions and 2 deletions

View File

@ -138,7 +138,7 @@ void MyDiagonalCurve::draw (int handle) {
return; return;
// re-calculate curve if dimensions changed // 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 (); interpolate ();
Gtk::StateType state = !is_sensitive() ? Gtk::STATE_INSENSITIVE : Gtk::STATE_NORMAL; Gtk::StateType state = !is_sensitive() ? Gtk::STATE_INSENSITIVE : Gtk::STATE_NORMAL;

View File

@ -96,7 +96,7 @@ void MyFlatCurve::draw () {
return; return;
// re-calculate curve if dimensions changed // 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 (); interpolate ();
double innerW = double(graphW-2); double innerW = double(graphW-2);