r22119 by jghali -

scribus-commit scribus-commit at lists.scribus.net
Fri Jul 21 12:05:39 UTC 2017


Author: jghali
Date: Fri Jul 21 12:05:39 2017
New Revision: 22119

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22119
Log:
#14533: Text properties dialog should get a context menu item

Modified:
    trunk/Scribus/scribus/ui/contextmenu.cpp

Modified: trunk/Scribus/scribus/ui/contextmenu.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22119&path=/trunk/Scribus/scribus/ui/contextmenu.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/contextmenu.cpp	(original)
+++ trunk/Scribus/scribus/ui/contextmenu.cpp	Fri Jul 21 12:05:39 2017
@@ -556,6 +556,16 @@
 	//<-- Add Properties
 	addSeparator();
 	addAction(m_ScMW->scrActions["toolsProperties"]);
+	
+	bool containsTextFrame = false;
+	if (currItem && currItem->asTextFrame())
+		containsTextFrame = true;
+	if (m_doc->appMode == modeEditTable)
+		containsTextFrame = true;
+	if (!containsTextFrame && m_Sel.containsItemType(PageItem::TextFrame))
+		containsTextFrame = true;
+	if (containsTextFrame)
+		addAction(m_ScMW->scrActions["toolsText"]);
 	//-->
 
 }




More information about the scribus-commit mailing list