diff options
Diffstat (limited to 'cocoa/InfoBar.mm')
| -rw-r--r-- | cocoa/InfoBar.mm | 4 | 
1 files changed, 4 insertions, 0 deletions
diff --git a/cocoa/InfoBar.mm b/cocoa/InfoBar.mm index 90b51c373..a96634dd1 100644 --- a/cocoa/InfoBar.mm +++ b/cocoa/InfoBar.mm @@ -188,6 +188,7 @@ static float BarFontSize = 10.0;    [mZoomPopup release];    // 2) The caret position label. +  Class oldCellClass = [NSTextField cellClass];    [NSTextField setCellClass: [VerticallyCenteredTextFieldCell class]];    mCaretPositionLabel = [[NSTextField alloc] initWithFrame: NSMakeRect(0.0, 0.0, 50.0, 1.0)]; @@ -219,6 +220,9 @@ static float BarFontSize = 10.0;    [self addSubview: mStatusTextLabel];    [mStatusTextLabel release]; +   +  // Restore original cell class so that everything else doesn't get broken +  [NSTextField setCellClass: oldCellClass];  }  //--------------------------------------------------------------------------------------------------  | 
