diff options
author | Neil Hodgson <nyamatongwe@gmail.com> | 2014-02-20 13:58:00 +1100 |
---|---|---|
committer | Neil Hodgson <nyamatongwe@gmail.com> | 2014-02-20 13:58:00 +1100 |
commit | 2f14bead31896b3ea969ebf34b2ca2b1521544f0 (patch) | |
tree | 41f0b16e9a053bba91f3f521edbea3a70e57244d | |
parent | 9e381ff68a4833b998445bbee844e85cf094b6c7 (diff) | |
download | scintilla-mirror-2f14bead31896b3ea969ebf34b2ca2b1521544f0.tar.gz |
Check that argument is of correct type.
-rw-r--r-- | cocoa/PlatCocoa.mm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cocoa/PlatCocoa.mm b/cocoa/PlatCocoa.mm index 28c0f8107..da87a7b13 100644 --- a/cocoa/PlatCocoa.mm +++ b/cocoa/PlatCocoa.mm @@ -1179,6 +1179,7 @@ void Window::SetPosition(PRectangle rc) else { // NSWindow + PLATFORM_ASSERT([idWin isKindOfClass: [NSWindow class]]); NSWindow* win = reinterpret_cast<NSWindow*>(idWin); int screenHeight = ScreenMax(win); NSRect nsrc = NSMakeRect(rc.left, screenHeight - rc.bottom, |