aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/CallTip.cxx11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/CallTip.cxx b/src/CallTip.cxx
index fbbe8f142..80fd55d7b 100644
--- a/src/CallTip.cxx
+++ b/src/CallTip.cxx
@@ -104,12 +104,11 @@ void CallTip::DrawChunk(Surface *surface, int &x, const char *s,
surface->Polygon(pts, sizeof(pts) / sizeof(pts[0]),
colourBG.allocated, colourBG.allocated);
}
- } else {
- if (s[startSeg] == '\001') {
- rectUp = rcClient;
- } else {
- rectDown = rcClient;
- }
+ }
+ if (s[startSeg] == '\001') {
+ rectUp = rcClient;
+ } else if (s[startSeg] == '\002') {
+ rectDown = rcClient;
}
} else {
xEnd = x + surface->WidthText(font, s+startSeg, endSeg - startSeg);