Last minute minor bugfix of the patch from issue 1359
This commit is contained in:
parent
caf53b95a3
commit
a335c22d85
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user