Merge pull request #7257 from Beep6581/fix-warnings-5.12

Compiler warning fixes
This commit is contained in:
Lawrence37
2024-12-26 22:26:11 -08:00
committed by GitHub
20 changed files with 184 additions and 137 deletions

View File

@@ -1598,7 +1598,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);
@@ -1627,11 +1628,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;