Fix library, grave, exile crash on windows

This commit is contained in:
Jeff 2015-09-12 17:24:36 -04:00
parent 73677e16f6
commit 32df2c29ed

View file

@ -141,12 +141,7 @@ void ZoneViewWidget::moveEvent(QGraphicsSceneMoveEvent * /* event */)
if(!scene())
return;
static int titleBarHeight = 0;
if(titleBarHeight == 0)
{
QStyleOptionTitleBar so;
titleBarHeight = style()->pixelMetric(QStyle::PM_TitleBarHeight, &so, (QWidget*) this);
}
int titleBarHeight = 24;
QPointF scenePos = pos();