Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 23262 → Rev 23263

/trunk/Scribus/scribus/scribusview.cpp
51,9 → 51,9
#include <QPolygon>
#include <QStack>
#include <QStringList>
#include <QStyleOptionRubberBand>
#include <QWheelEvent>
#include <QWidgetAction>
#include <QStyleOptionRubberBand>
 
#include <cstdio>
#include <cstdlib>
3147,6 → 3147,10
 
UndoTransaction trans(undoManager->beginTransaction(currItem->getUName(), currItem->getUPixmap(), Um::ToOutlines, "", nullptr));
int offset = 0;
 
int oldRotMode = Doc->rotationMode();
Doc->setRotationMode(0);
 
for (int i = 0; i < selectedItemCount; ++i)
{
PageItem *currItem = tmpSelection.itemAt(offset);
3207,6 → 3211,7
}
delItems.append(tmpSelection.takeItem(offset));
}
 
tmpSelection.clear();
int ind = -1;
if (currItem->isGroupChild())
3251,6 → 3256,7
else
Doc->Items->insert(ind+1, newGroupedItems.at(0));
}
 
int toDeleteItemCount = delItems.count();
if (toDeleteItemCount != 0)
{
3259,6 → 3265,8
tmpSelection.addItem(delItems.takeAt(0)); //yes, 0, remove the first
Doc->itemSelection_DeleteItem(&tmpSelection);
}
 
Doc->setRotationMode(oldRotMode);
m_ScMW->HaveNewSel();
Deselect(true);
trans.commit();