]> git.lyx.org Git - lyx.git/commitdiff
* fix drag pixmap
authorStefan Schimanski <sts@lyx.org>
Sat, 15 Mar 2008 02:42:48 +0000 (02:42 +0000)
committerStefan Schimanski <sts@lyx.org>
Sat, 15 Mar 2008 02:42:48 +0000 (02:42 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23751 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiWorkArea.cpp

index 5c6dd6787bb5ff1d5437d6f3f5d7b8490153aa78..3f6560cabc8e5e0d9291661b02ec268ed7e5440c 100644 (file)
@@ -1468,11 +1468,10 @@ void DragTabBar::mouseMoveEvent(QMouseEvent * event)
        drag->setMimeData(mimeData);
        
 #if QT_VERSION >= 0x040300
-       // FIXME: gives garbage for tab != 0.
        // get tab pixmap as cursor
        QRect r = tabRect(tab);
        QPixmap pixmap(r.size());
-       render(&pixmap, r.topLeft());
+       render(&pixmap, r.topLeft());
        drag->setPixmap(pixmap);
 #endif