r24230 by jghali - Code style fixes
scribus-commit
scribus-commit at lists.scribus.net
Wed Nov 11 15:28:54 UTC 2020
Author: jghali
Date: Wed Nov 11 15:28:54 2020
New Revision: 24230
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24230
Log:
Code style fixes
Modified:
trunk/Scribus/scribus/scribusdoc.cpp
Modified: trunk/Scribus/scribus/scribusdoc.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24230&path=/trunk/Scribus/scribus/scribusdoc.cpp
==============================================================================
--- trunk/Scribus/scribus/scribusdoc.cpp (original)
+++ trunk/Scribus/scribus/scribusdoc.cpp Wed Nov 11 15:28:54 2020
@@ -13220,7 +13220,7 @@
void ScribusDoc::itemSelection_MultipleDuplicate(const ItemMultipleDuplicateData& mdData)
{
- if ((mdData.type==0 && mdData.copyCount<1) || (mdData.type==1 && (mdData.gridRows==1 && mdData.gridCols==1)))
+ if ((mdData.type == 0 && mdData.copyCount < 1) || (mdData.type == 1 && (mdData.gridRows == 1 && mdData.gridCols == 1)))
return;
if ((mdData.type == 2) && (Pages->count() == 1))
return;
@@ -13231,7 +13231,7 @@
if (UndoManager::undoEnabled())
{ // Make multiple duplicate a single action in the action history
if (m_Selection->count() > 1)
- activeTransaction = m_undoManager->beginTransaction(Um::SelectionGroup, Um::IGroup, Um::MultipleDuplicate,"",Um::IMultipleDuplicate);
+ activeTransaction = m_undoManager->beginTransaction(Um::SelectionGroup, Um::IGroup, Um::MultipleDuplicate, "", Um::IMultipleDuplicate);
else
{
PageItem* item=m_Selection->itemAt(0);
@@ -13256,7 +13256,7 @@
double dV2 = dV;
double dR = mdData.copyRotation;
double dR2 = dR;
- if (mdData.copyShiftOrGap==1)
+ if (mdData.copyShiftOrGap == 1)
{
if (dH != 0.0)
dH2 += selection.width();
@@ -13267,7 +13267,7 @@
QString BufferS = ss.writeElem(this, &selection);
//FIXME: stop using m_View
m_View->deselectItems(true);
- for (int i=0; i<mdData.copyCount; ++i)
+ for (int i = 0; i < mdData.copyCount; ++i)
{
uint ac = Items->count();
ss.readElem(BufferS, this, m_currentPage->xOffset(), m_currentPage->yOffset(), false, true);
@@ -13327,7 +13327,7 @@
for (int j = 0; j < mdData.gridCols; ++j) //skip 0, the item is the one we are copying
{
// We can comment out this conditional jump if we use slotEditCut(), would not be cool? ;-)
- if (i==0 && j==0)
+ if (i == 0 && j == 0)
continue;
uint ac = Items->count();
ss.readElem(BufferS, this, m_currentPage->xOffset(), m_currentPage->yOffset(), false, true);
@@ -13335,7 +13335,7 @@
{
PageItem* bItem = Items->at(as);
bItem->setLocked(false);
- bItem->moveBy(j*dX, i*dY, true);
+ bItem->moveBy(j * dX, i * dY, true);
if (bItem->isGroup())
GroupOnPage(bItem);
else
More information about the scribus-commit
mailing list