r20795 by jghali -

scribus-commit scribus-commit at lists.scribus.net
Sat Jan 30 20:48:00 UTC 2016


Author: jghali
Date: Sat Jan 30 20:47:59 2016
New Revision: 20795

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20795
Log:
coverity #1350562: arguments in wrong order

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

Modified: trunk/Scribus/scribus/scimage.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20795&path=/trunk/Scribus/scribus/scimage.cpp
==============================================================================
--- trunk/Scribus/scribus/scimage.cpp	(original)
+++ trunk/Scribus/scribus/scimage.cpp	Sat Jan 30 20:47:59 2016
@@ -84,9 +84,9 @@
 	return this;
 }
 
-QImage ScImage::scaled(int h, int w, Qt::AspectRatioMode mode, Qt::TransformationMode transformMode) const
-{
-	return QImage::scaled(h, w, mode, transformMode);
+QImage ScImage::scaled(int w, int h, Qt::AspectRatioMode mode, Qt::TransformationMode transformMode) const
+{
+	return QImage::scaled(w, h, mode, transformMode);
 }
 
 

Modified: trunk/Scribus/scribus/scimage.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20795&path=/trunk/Scribus/scribus/scimage.h
==============================================================================
--- trunk/Scribus/scribus/scimage.h	(original)
+++ trunk/Scribus/scribus/scimage.h	Sat Jan 30 20:47:59 2016
@@ -71,7 +71,7 @@
 
 	const QImage& qImage();
 	QImage* qImagePtr();
-	QImage scaled(int h, int w, Qt::AspectRatioMode mode = Qt::IgnoreAspectRatio, Qt::TransformationMode transformMode = Qt::FastTransformation) const;
+	QImage scaled(int w, int h, Qt::AspectRatioMode mode = Qt::IgnoreAspectRatio, Qt::TransformationMode transformMode = Qt::FastTransformation) const;
 	
 	int height() const { return QImage::height(); }
 	int width() const { return QImage::width(); }




More information about the scribus-commit mailing list