diff --git a/uppsrc/CtrlCore/GtkEvent.cpp b/uppsrc/CtrlCore/GtkEvent.cpp index 9c3cc30af..5ba8f3edf 100644 --- a/uppsrc/CtrlCore/GtkEvent.cpp +++ b/uppsrc/CtrlCore/GtkEvent.cpp @@ -73,7 +73,7 @@ Ctrl *Ctrl::GetTopCtrlFromId(int id) int q = FindId(id); if(q >= 0) { Ctrl *p = wins[q].ctrl; - if(p && p->top)50 + if(p && p->top) return p; } return NULL; diff --git a/uppsrc/TextDiffCtrl/patch.cpp b/uppsrc/TextDiffCtrl/patch.cpp index e02d77686..4202067f3 100644 --- a/uppsrc/TextDiffCtrl/patch.cpp +++ b/uppsrc/TextDiffCtrl/patch.cpp @@ -144,7 +144,7 @@ String Patch::GetPatchedFile(int i) const String path = GetPath(i); if(FileExists(path)) { String s = LoadFile(GetPath(i)); - bool crlf = s.Find('\r') >= 0; + crlf = s.Find('\r') >= 0; lines = Split(Filter(s, [](int c) { return c == '\r' ? 0 : c; }), '\n', false); }