r22353 by jghali -

scribus-commit scribus-commit at lists.scribus.net
Wed Jan 17 22:17:24 UTC 2018


Author: jghali
Date: Wed Jan 17 22:17:24 2018
New Revision: 22353

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22353
Log:
small change to make coverity more happy

Modified:
    trunk/Scribus/scribus/pageitem.cpp

Modified: trunk/Scribus/scribus/pageitem.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22353&path=/trunk/Scribus/scribus/pageitem.cpp
==============================================================================
--- trunk/Scribus/scribus/pageitem.cpp	(original)
+++ trunk/Scribus/scribus/pageitem.cpp	Wed Jan 17 22:17:24 2018
@@ -8980,7 +8980,7 @@
 			else
 			{
 				extraSpace = m_lineWidth / 2.0;
-				if ((extraSpace == 0) && m_Doc->view()) // Hairline case
+				if ((extraSpace == 0.0) && m_Doc->view()) // Hairline case
 					extraSpace = 0.5 / m_Doc->view()->scale();
 			}
 		}
@@ -9002,7 +9002,7 @@
 		if (sl.Color != CommonStrings::None)
 		{
 			extraSpace = sl.Width / 2.0;
-			if ((extraSpace == 0) && m_Doc->view()) // Hairline case
+			if ((extraSpace == 0.0) && m_Doc->view()) // Hairline case
 				extraSpace = 0.5 / m_Doc->view()->scale();
 		}
 	}
@@ -9045,7 +9045,7 @@
 			if ((lineColor() != CommonStrings::None) || (!patternStrokeVal.isEmpty()) || (GrTypeStroke > 0))
 			{
 				extraSpace = m_lineWidth / 2.0;
-				if ((extraSpace == 0) && m_Doc->view()) // Hairline case
+				if ((extraSpace == 0.0) && m_Doc->view()) // Hairline case
 					extraSpace = 0.5 / m_Doc->view()->scale();
 			}
 			if ((!patternStrokeVal.isEmpty()) && (m_Doc->docPatterns.contains(patternStrokeVal)) && (patternStrokePath))
@@ -9066,7 +9066,7 @@
 			if (sl.Color != CommonStrings::None)
 			{
 				extraSpace = sl.Width / 2.0;
-				if ((extraSpace == 0) && m_Doc->view()) // Hairline case
+				if ((extraSpace == 0.0) && m_Doc->view()) // Hairline case
 					extraSpace = 0.5 / m_Doc->view()->scale();
 			}
 		}
@@ -9084,7 +9084,7 @@
 		if ((lineColor() != CommonStrings::None) || (!patternStrokeVal.isEmpty()) || (GrTypeStroke > 0))
 		{
 			extraSpace = m_lineWidth / 2.0;
-			if ((extraSpace == 0) && m_Doc->view()) // Hairline case
+			if ((extraSpace == 0.0) && m_Doc->view()) // Hairline case
 				extraSpace = 0.5 / m_Doc->view()->scale();
 		}
 		if ((!patternStrokeVal.isEmpty()) && (m_Doc->docPatterns.contains(patternStrokeVal)) && (patternStrokePath))
@@ -9105,7 +9105,7 @@
 		if (sl.Color != CommonStrings::None)
 		{
 			extraSpace = sl.Width / 2.0;
-			if ((extraSpace == 0) && m_Doc->view()) // Hairline case
+			if ((extraSpace == 0.0) && m_Doc->view()) // Hairline case
 				extraSpace = 0.5 / m_Doc->view()->scale();
 		}
 	}
@@ -9124,7 +9124,7 @@
 			if ((lineColor() != CommonStrings::None) || (!patternStrokeVal.isEmpty()) || (GrTypeStroke > 0))
 			{
 				extraSpace = m_lineWidth;
-				if ((extraSpace == 0) && m_Doc->view()) // Hairline case
+				if ((extraSpace == 0.0) && m_Doc->view()) // Hairline case
 					extraSpace = 1.0 / m_Doc->view()->scale();
 			}
 			if ((!patternStrokeVal.isEmpty()) && (m_Doc->docPatterns.contains(patternStrokeVal)) && (patternStrokePath))
@@ -9145,7 +9145,7 @@
 			if (sl.Color != CommonStrings::None)
 			{
 				extraSpace = sl.Width;
-				if ((extraSpace == 0) && m_Doc->view()) // Hairline case
+				if ((extraSpace == 0.0) && m_Doc->view()) // Hairline case
 					extraSpace = 1.0 / m_Doc->view()->scale();
 			}
 		}
@@ -9163,7 +9163,7 @@
 		if ((lineColor() != CommonStrings::None) || (!patternStrokeVal.isEmpty()) || (GrTypeStroke > 0))
 		{
 			extraSpace = m_lineWidth;
-			if ((extraSpace == 0) && m_Doc->view()) // Hairline case
+			if ((extraSpace == 0.0) && m_Doc->view()) // Hairline case
 				extraSpace = 1.0 / m_Doc->view()->scale();
 		}
 		if ((!patternStrokeVal.isEmpty()) && (m_Doc->docPatterns.contains(patternStrokeVal)) && (patternStrokePath))
@@ -9184,7 +9184,7 @@
 		if (sl.Color != CommonStrings::None)
 		{
 			extraSpace = sl.Width;
-			if ((extraSpace == 0) && m_Doc->view()) // Hairline case
+			if ((extraSpace == 0.0) && m_Doc->view()) // Hairline case
 				extraSpace = 1.0 / m_Doc->view()->scale();
 		}
 	}
@@ -9201,7 +9201,7 @@
 		if ((lineColor() != CommonStrings::None) || (!patternStrokeVal.isEmpty()) || (GrTypeStroke > 0))
 		{
 			extraSpace = m_lineWidth;
-			if ((extraSpace == 0) && m_Doc->view()) // Hairline case
+			if ((extraSpace == 0.0) && m_Doc->view()) // Hairline case
 				extraSpace = 1.0 / m_Doc->view()->scale();
 		}
 		if ((!patternStrokeVal.isEmpty()) && (m_Doc->docPatterns.contains(patternStrokeVal)) && (patternStrokePath))
@@ -9222,7 +9222,7 @@
 		if (sl.Color != CommonStrings::None)
 		{
 			extraSpace = sl.Width;
-			if ((extraSpace == 0) && m_Doc->view()) // Hairline case
+			if ((extraSpace == 0.0) && m_Doc->view()) // Hairline case
 				extraSpace = 1.0 / m_Doc->view()->scale();
 		}
 	}




More information about the scribus-commit mailing list