r24284 by craig - Additional globalStrut call gone!

scribus-commit scribus-commit at lists.scribus.net
Tue Nov 24 21:07:58 UTC 2020


Author: craig
Date: Tue Nov 24 21:07:57 2020
New Revision: 24284

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24284
Log:
Additional globalStrut call gone!

Modified:
    trunk/Scribus/scribus/plugins/gettext/textfilter/tfdia.cpp

Modified: trunk/Scribus/scribus/plugins/gettext/textfilter/tfdia.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24284&path=/trunk/Scribus/scribus/plugins/gettext/textfilter/tfdia.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/gettext/textfilter/tfdia.cpp	(original)
+++ trunk/Scribus/scribus/plugins/gettext/textfilter/tfdia.cpp	Tue Nov 24 21:07:57 2020
@@ -47,15 +47,14 @@
 	int vheight = qMax(300, prefs->getInt("height", 300));
 	// Check values against current available space
 	QRect scr = QApplication::desktop()->availableGeometry(this);
-	QSize gStrut = QApplication::globalStrut();
 	if ( vleft >= scr.width() )
 		vleft = 0;
 	if ( vtop >= scr.height() )
 		vtop = 64;
 	if ( vwidth >= scr.width() )
-		vwidth = qMax( gStrut.width(), scr.width() - vleft );
+		vwidth = qMax( 0, scr.width() - vleft );
 	if ( vheight >= scr.height() )
-		vheight = qMax( gStrut.height(), scr.height() - vtop );
+		vheight = qMax( 0, scr.height() - vtop );
 
 	setGeometry(vleft, vtop, vwidth, vheight);
    	createLayout();




More information about the scribus-commit mailing list