aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2011-09-27 22:19:29 +1000
committernyamatongwe <devnull@localhost>2011-09-27 22:19:29 +1000
commit99151db906d1234d3cc6d489b04d14542fad09bd (patch)
tree2b133d708605e996befea04275ec17f331fcd411
parent64ebd8eea5c3210e0013c529a7b56c49c4350986 (diff)
downloadscintilla-mirror-99151db906d1234d3cc6d489b04d14542fad09bd.tar.gz
Standardize code style.
-rw-r--r--src/CallTip.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/CallTip.cxx b/src/CallTip.cxx
index 4da4142a8..d93d80411 100644
--- a/src/CallTip.cxx
+++ b/src/CallTip.cxx
@@ -289,12 +289,9 @@ PRectangle CallTip::CallTipStart(int pos, Point pt, int textHeight, const char *
// the tip text, else to the tip text left edge.
int height = lineHeight * numLines - surfaceMeasure->InternalLeading(font) + 2 + 2;
delete surfaceMeasure;
- if (above)
- {
+ if (above) {
return PRectangle(pt.x - offsetMain, pt.y - 1 - height, pt.x + width - offsetMain, pt.y - 1);
- }
- else
- {
+ } else {
return PRectangle(pt.x - offsetMain, pt.y + 1 + textHeight, pt.x + width - offsetMain, pt.y + 1 + textHeight + height);
}
}