Placate some GCC warnings (#6563)

This commit is contained in:
Lawrence Lee
2022-09-05 18:05:35 -07:00
parent 6819b32be7
commit 4b97a5cf3c
4 changed files with 17 additions and 19 deletions

View File

@@ -1643,7 +1643,8 @@ void MyFlatCurve::movePoint(bool moveX, bool moveY, bool pipetteDrag)
void MyFlatCurve::getCursorPosition(Gdk::EventType evType, bool isHint, int evX, int evY, Gdk::ModifierType modifierKey)
{
int tx, ty;
int prevCursorX, prevCursorY;
int prevCursorX = cursorX;
int prevCursorY = cursorY;
double incrementX = 1. / double(graphW);
double incrementY = 1. / double(graphH);
@@ -1672,11 +1673,6 @@ void MyFlatCurve::getCursorPosition(Gdk::EventType evType, bool isHint, int evX,
break;
}
if (editedHandle != FCT_EditedHandle_None) {
prevCursorX = cursorX;
prevCursorY = cursorY;
}
cursorX = tx - graphX;
cursorY = graphY - ty;

View File

@@ -38,7 +38,7 @@ int RTImage::scaleBack = 0;
RTImage::RTImage () {}
RTImage::RTImage (RTImage &other) : Gtk::Image(), surface(other.surface), pixbuf(other.pixbuf)
RTImage::RTImage (RTImage &other) : sigc::trackable(), Glib::ObjectBase(), Gtk::Image(), surface(other.surface), pixbuf(other.pixbuf)
{
if (pixbuf) {
set(pixbuf);