aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2013-07-25 17:43:00 +1000
committerNeil <nyamatongwe@gmail.com>2013-07-25 17:43:00 +1000
commitba93050186b8c23adea52a70c84564059ceab043 (patch)
tree7ebd1f88555226308d506d6a9b91dbdfcb5c1cf5 /src/Editor.cxx
parent883e6b2de1a1f317d465f6876b5cf00346107910 (diff)
downloadscintilla-mirror-ba93050186b8c23adea52a70c84564059ceab043.tar.gz
Minor changes to avoid warnings from Coverity.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 859ae180c..c13a5fd9d 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -200,6 +200,8 @@ Editor::Editor() {
theEdge = 0;
paintState = notPainting;
+ paintAbandonedByStyling = false;
+ paintingAllText = false;
willRedrawAll = false;
modEventMask = SC_MODEVENTMASKALL;
@@ -2500,11 +2502,9 @@ void Editor::DrawWrapMarker(Surface *surface, PRectangle rcPlace,
int w = rcPlace.right - rcPlace.left - xa - 1;
bool xStraight = isEndMarker; // x-mirrored symbol for start marker
- bool yStraight = true;
- //bool yStraight= isEndMarker; // comment in for start marker y-mirrowed
int x0 = xStraight ? rcPlace.left : rcPlace.right - 1;
- int y0 = yStraight ? rcPlace.top : rcPlace.bottom - 1;
+ int y0 = rcPlace.top;
int dy = (rcPlace.bottom - rcPlace.top) / 5;
int y = (rcPlace.bottom - rcPlace.top) / 2 + dy;
@@ -2522,7 +2522,7 @@ void Editor::DrawWrapMarker(Surface *surface, PRectangle rcPlace,
surface->LineTo(xBase + xDir * xRelative, yBase + yDir * yRelative);
}
};
- Relative rel = {surface, x0, xStraight ? 1 : -1, y0, yStraight ? 1 : -1};
+ Relative rel = {surface, x0, xStraight ? 1 : -1, y0, 1};
// arrow head
rel.MoveTo(xa, y);
@@ -9151,6 +9151,7 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {
sel.selType = Selection::selStream;
}
InvalidateSelection(sel.RangeMain(), true);
+ break;
}
case SCI_GETSELECTIONMODE:
switch (sel.selType) {