aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2009-09-04 13:22:58 +0000
committernyamatongwe <devnull@localhost>2009-09-04 13:22:58 +0000
commit3a03f0872c90b1ed653192f039f3f25c92b92a4b (patch)
treeb6bb3166748b286223fdc3a0f5ccb2a91c7e88b9
parenteeb850db7c0e8fcd3a96bff35203770b01847615 (diff)
downloadscintilla-mirror-3a03f0872c90b1ed653192f039f3f25c92b92a4b.tar.gz
Avoid errors from new compiler in OS X 10.6.
-rw-r--r--cocoa/ScintillaView.mm4
1 files changed, 3 insertions, 1 deletions
diff --git a/cocoa/ScintillaView.mm b/cocoa/ScintillaView.mm
index fdfe08db5..5ff3de720 100644
--- a/cocoa/ScintillaView.mm
+++ b/cocoa/ScintillaView.mm
@@ -652,12 +652,14 @@ static void notification(intptr_t windowid, unsigned int iMessage, uintptr_t wPa
[editor sendNotification: NSTextDidChangeNotification];
break;
case SCN_ZOOM:
+ {
// A zoom change happend. Notify info bar if there is one.
float zoom = [editor getGeneralProperty: SCI_GETZOOM parameter: 0];
int fontSize = [editor getGeneralProperty: SCI_STYLEGETSIZE parameter: STYLE_DEFAULT];
float factor = (zoom / fontSize) + 1;
[editor->mInfoBar notify: IBNZoomChanged message: nil location: NSZeroPoint value: factor];
- break;
+ }
+ break;
case SCN_UPDATEUI:
// Triggered whenever changes in the UI state need to be reflected.
// These can be: caret changes, selection changes etc.