r22620 by jghali - ooops! missed committing function addition to ScColor with last commit

scribus-commit scribus-commit at lists.scribus.net
Sun Aug 5 21:36:16 UTC 2018


Author: jghali
Date: Sun Aug  5 21:36:16 2018
New Revision: 22620

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22620
Log:
ooops! missed committing function addition to ScColor with last commit

Modified:
    trunk/Scribus/scribus/sccolor.cpp
    trunk/Scribus/scribus/sccolor.h

Modified: trunk/Scribus/scribus/sccolor.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22620&path=/trunk/Scribus/scribus/sccolor.cpp
==============================================================================
--- trunk/Scribus/scribus/sccolor.cpp	(original)
+++ trunk/Scribus/scribus/sccolor.cpp	Sun Aug  5 21:36:16 2018
@@ -401,6 +401,11 @@
 	}
 }
 
+bool ScColor::isProcessColor() const
+{
+	return (!m_Regist && !m_Spot);
+}
+
 bool ScColor::isRegistrationColor() const
 {
 	return m_Regist;

Modified: trunk/Scribus/scribus/sccolor.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22620&path=/trunk/Scribus/scribus/sccolor.h
==============================================================================
--- trunk/Scribus/scribus/sccolor.h	(original)
+++ trunk/Scribus/scribus/sccolor.h	Sun Aug  5 21:36:16 2018
@@ -136,6 +136,8 @@
 	/** \brief Sets the Values of a color from an Hex-String in the Form #CCMMYYKK or #RRGGBB */
 	void setNamedColor(QString nam);
 
+	/** \brief If the color is a process color (ie neither spot, nor registration) */
+	bool isProcessColor() const;
 	/** \brief If the color is a spot color */
 	bool isSpotColor() const;
 	/** \brief Set a color to be a spot color or not. No effect if color is the None color. */




More information about the scribus-commit mailing list