diff options
author | nyamatongwe <unknown> | 2009-09-04 13:22:58 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2009-09-04 13:22:58 +0000 |
commit | 86ce55e0a096095639058c8b4529e511c5c3ffe8 (patch) | |
tree | b6bb3166748b286223fdc3a0f5ccb2a91c7e88b9 /cocoa/ScintillaView.mm | |
parent | b32128f1f6cc8b8c106e7b53456f47fe930fc09c (diff) | |
download | scintilla-mirror-86ce55e0a096095639058c8b4529e511c5c3ffe8.tar.gz |
Avoid errors from new compiler in OS X 10.6.
Diffstat (limited to 'cocoa/ScintillaView.mm')
-rw-r--r-- | cocoa/ScintillaView.mm | 4 |
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. |