r23191 by jghali - Rename argument of PropertiesPalette::setCurrentItem()

scribus-commit scribus-commit at lists.scribus.net
Mon Sep 9 13:30:15 UTC 2019


Author: jghali
Date: Mon Sep  9 13:30:15 2019
New Revision: 23191

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23191
Log:
Rename argument of PropertiesPalette::setCurrentItem()

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

Modified: trunk/Scribus/scribus/ui/propertiespalette.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23191&path=/trunk/Scribus/scribus/ui/propertiespalette.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/propertiespalette.cpp	(original)
+++ trunk/Scribus/scribus/ui/propertiespalette.cpp	Mon Sep  9 13:30:15 2019
@@ -342,7 +342,7 @@
 	}
 }
 
-void PropertiesPalette::setCurrentItem(PageItem *i)
+void PropertiesPalette::setCurrentItem(PageItem *item)
 {
 	if (!m_ScMW || m_ScMW->scriptIsRunning())
 		return;
@@ -353,7 +353,7 @@
 	//if (m_item == i)
 	//	return;
 
-	if (!i)
+	if (!item)
 	{
 		unsetItem();
 		return;
@@ -362,13 +362,13 @@
 	int oldTabIndex = TabStack->currentIndex();
 
 	if (!m_doc)
-		setDoc(i->doc());
+		setDoc(item->doc());
 
 	disconnect(TabStack, SIGNAL(currentChanged2(int)) , this, SLOT(SelTab(int)));
 	disconnect(linePal , SIGNAL(lineModeChanged(int)), this, SLOT(NewLineMode(int)));
 
 	m_haveItem = false;
-	m_item = i;
+	m_item = item;
 
 	tablePal->setItem(m_item);
 	transparencyPalette->setCurrentItem(m_item);
@@ -378,7 +378,7 @@
 	connect(linePal , SIGNAL(lineModeChanged(int)), this, SLOT(NewLineMode(int)));
 
 //CB replaces old emits from PageItem::emitAllToGUI()
-	setLocked(i->locked());
+	setLocked(item->locked());
 
 	if ((m_item->isGroup()) && (!m_item->isSingleSel))
 	{




More information about the scribus-commit mailing list