r23107 by jghali - Code style fixes

scribus-commit scribus-commit at lists.scribus.net
Tue Aug 6 04:28:08 UTC 2019


Author: jghali
Date: Tue Aug  6 04:28:08 2019
New Revision: 23107

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23107
Log:
Code style fixes

Modified:
    trunk/Scribus/scribus/canvasmode_editgradient.cpp

Modified: trunk/Scribus/scribus/canvasmode_editgradient.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23107&path=/trunk/Scribus/scribus/canvasmode_editgradient.cpp
==============================================================================
--- trunk/Scribus/scribus/canvasmode_editgradient.cpp	(original)
+++ trunk/Scribus/scribus/canvasmode_editgradient.cpp	Tue Aug  6 04:28:08 2019
@@ -929,26 +929,27 @@
 	m_canvas->resetRenderMode();
 	m->accept();
 	PageItem* currItem = m_doc->m_Selection->itemAt(0);
-	if (m_gradientPoint != noPointDefined && UndoManager::undoEnabled()){
+	if (m_gradientPoint != noPointDefined && UndoManager::undoEnabled())
+	{
 		QList<FPoint> tmp;
 		ScItemState<QList<FPoint> > *is = new ScItemState<QList<FPoint> >(Um::GradPos + "i");
 		is->set("GRAD_POS");
-		is->set("OLDSTARTX",OldGrStartX);
-		is->set("STARTX",currItem->gradientStartX());
-		is->set("OLDSTARTY",OldGrStartY);
-		is->set("STARTY",currItem->gradientStartY());
-		is->set("OLDENDX",OldGrEndX);
-		is->set("ENDX",currItem->gradientEndX());
-		is->set("OLDENDY",OldGrEndY);
-		is->set("ENDY",currItem->gradientEndY());
-		is->set("OLDFOCALX",OldGrFocalX);
-		is->set("FOCALX",currItem->gradientFocalX());
-		is->set("OLDFOCALY",OldGrFocalY);
-		is->set("FOCALY",currItem->gradientFocalY());
-		is->set("OLDSCALE",OldGrScale);
-		is->set("SCALE",currItem->gradientScale());
-		is->set("OLDSKEW",OldGrSkew);
-		is->set("SKEW",currItem->gradientSkew());
+		is->set("OLDSTARTX", OldGrStartX);
+		is->set("STARTX", currItem->gradientStartX());
+		is->set("OLDSTARTY", OldGrStartY);
+		is->set("STARTY", currItem->gradientStartY());
+		is->set("OLDENDX", OldGrEndX);
+		is->set("ENDX", currItem->gradientEndX());
+		is->set("OLDENDY", OldGrEndY);
+		is->set("ENDY", currItem->gradientEndY());
+		is->set("OLDFOCALX", OldGrFocalX);
+		is->set("FOCALX", currItem->gradientFocalX());
+		is->set("OLDFOCALY", OldGrFocalY);
+		is->set("FOCALY", currItem->gradientFocalY());
+		is->set("OLDSCALE", OldGrScale);
+		is->set("SCALE", currItem->gradientScale());
+		is->set("OLDSKEW", OldGrSkew);
+		is->set("SKEW", currItem->gradientSkew());
 		tmp.append(OldGrControl1);
 		tmp.append(currItem->gradientControl1());
 		tmp.append(OldGrControl2);
@@ -960,39 +961,39 @@
 		tmp.append(OldGrControl5);
 		tmp.append(currItem->gradientControl5());
 		is->setItem(tmp);
-		is->set("OLDSTROKESTARTX",OldGrStrokeStartX);
-		is->set("STROKESTARTX",currItem->gradientStrokeStartX());
-		is->set("OLDSTROKESTARTY",OldGrStrokeStartY);
-		is->set("STROKESTARTY",currItem->gradientStrokeStartY());
-		is->set("OLDSTROKEENDX",OldGrStrokeEndX);
-		is->set("STROKEENDX",currItem->gradientStrokeEndX());
-		is->set("OLDSTROKEENDY",OldGrStrokeEndY);
-		is->set("STROKEENDY",currItem->gradientStrokeEndY());
-		is->set("OLDSTROKEFOCALX",OldGrStrokeFocalX);
-		is->set("STROKEFOCALX",currItem->gradientStrokeFocalX());
-		is->set("OLDSTROKEFOCALY",OldGrStrokeFocalY);
-		is->set("STROKEFOCALY",currItem->gradientStrokeFocalY());
-		is->set("OLDSTROKESCALE",OldGrStrokeScale);
-		is->set("STROKESCALE",currItem->gradientStrokeScale());
-		is->set("OLDSTROKESKEW",OldGrStrokeSkew);
-		is->set("STROKESKEW",currItem->gradientStrokeSkew());
-		is->set("OLDMARKSTARTX",OldGrMaskStartX);
-		is->set("MARKSTARTX",currItem->GrMaskStartX);
-		is->set("OLDMARKSTARTY",OldGrMaskStartY);
-		is->set("MARKSTARTY",currItem->GrMaskStartY);
-		is->set("OLDMARKENDX",OldGrMaskEndX);
-		is->set("MARKENDX",currItem->GrMaskEndX);
-		is->set("OLDMARKENDY",OldGrMaskEndY);
-		is->set("MARKENDY",currItem->GrMaskEndY);
-		is->set("OLDMARKFOCALX",OldGrMaskFocalX);
-		is->set("MARKFOCALX",currItem->GrMaskFocalX);
-		is->set("OLDMARKFOCALY",OldGrMaskFocalY);
-		is->set("MARKFOCALY",currItem->GrMaskFocalY);
-		is->set("OLDMARKSCALE",OldGrMaskScale);
-		is->set("MARKSCALE",currItem->GrMaskScale);
-		is->set("OLDMARKSKEW",OldGrMaskSkew);
-		is->set("MARKSKEW",currItem->GrMaskSkew);
-		undoManager->action(currItem,is);
+		is->set("OLDSTROKESTARTX", OldGrStrokeStartX);
+		is->set("STROKESTARTX", currItem->gradientStrokeStartX());
+		is->set("OLDSTROKESTARTY", OldGrStrokeStartY);
+		is->set("STROKESTARTY", currItem->gradientStrokeStartY());
+		is->set("OLDSTROKEENDX", OldGrStrokeEndX);
+		is->set("STROKEENDX", currItem->gradientStrokeEndX());
+		is->set("OLDSTROKEENDY", OldGrStrokeEndY);
+		is->set("STROKEENDY", currItem->gradientStrokeEndY());
+		is->set("OLDSTROKEFOCALX", OldGrStrokeFocalX);
+		is->set("STROKEFOCALX", currItem->gradientStrokeFocalX());
+		is->set("OLDSTROKEFOCALY", OldGrStrokeFocalY);
+		is->set("STROKEFOCALY", currItem->gradientStrokeFocalY());
+		is->set("OLDSTROKESCALE", OldGrStrokeScale);
+		is->set("STROKESCALE", currItem->gradientStrokeScale());
+		is->set("OLDSTROKESKEW", OldGrStrokeSkew);
+		is->set("STROKESKEW", currItem->gradientStrokeSkew());
+		is->set("OLDMARKSTARTX", OldGrMaskStartX);
+		is->set("MARKSTARTX", currItem->GrMaskStartX);
+		is->set("OLDMARKSTARTY", OldGrMaskStartY);
+		is->set("MARKSTARTY", currItem->GrMaskStartY);
+		is->set("OLDMARKENDX", OldGrMaskEndX);
+		is->set("MARKENDX", currItem->GrMaskEndX);
+		is->set("OLDMARKENDY", OldGrMaskEndY);
+		is->set("MARKENDY", currItem->GrMaskEndY);
+		is->set("OLDMARKFOCALX", OldGrMaskFocalX);
+		is->set("MARKFOCALX", currItem->GrMaskFocalX);
+		is->set("OLDMARKFOCALY", OldGrMaskFocalY);
+		is->set("MARKFOCALY", currItem->GrMaskFocalY);
+		is->set("OLDMARKSCALE", OldGrMaskScale);
+		is->set("MARKSCALE", currItem->GrMaskScale);
+		is->set("OLDMARKSKEW", OldGrMaskSkew);
+		is->set("MARKSKEW", currItem->GrMaskSkew);
+		undoManager->action(currItem, is);
 	}
 	m_gradientPoint = noPointDefined;
 //	m_view->stopDragTimer();




More information about the scribus-commit mailing list