diff options
author | Morten Johan Sørvig <morten.sorvig@digia.com> | 2013-04-22 14:41:37 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-04-22 14:53:39 +0200 |
commit | 353f7340a18b06e92851ee199a4c65672595cb7c (patch) | |
tree | 77cc5aaf45c8118907473c6357e41ec0d5863946 /src/plugins/platforms/cocoa | |
parent | 8a00a42d0dc902153dd1f12981f2a8980cfd4272 (diff) |
Revert "Don't warn on 0x0 sized windows."
This reverts commit 88272d6c04f0f67fa9612dc7bdb2a5f8ba8d0314,
which accidentally re-introduced a crash.
Change-Id: Ie60bcf55f940b24f982eed4f20c6af3320b040a7
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
Diffstat (limited to 'src/plugins/platforms/cocoa')
-rw-r--r-- | src/plugins/platforms/cocoa/qcocoawindow.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/cocoa/qcocoawindow.mm b/src/plugins/platforms/cocoa/qcocoawindow.mm index 5ff1bf83ae..e726c1e4fd 100644 --- a/src/plugins/platforms/cocoa/qcocoawindow.mm +++ b/src/plugins/platforms/cocoa/qcocoawindow.mm @@ -863,7 +863,7 @@ void QCocoaWindow::syncWindowState(Qt::WindowState newState) // if content view width or height is 0 then the window animations will crash so // do nothing except set the new state NSRect contentRect = [contentView() frame]; - if (contentRect.size.width < 0 || contentRect.size.height < 0) { + if (contentRect.size.width <= 0 || contentRect.size.height <= 0) { qWarning() << Q_FUNC_INFO << "invalid window content view size, check your window geometry"; m_synchedWindowState = newState; return; |