Fixed erasing a line made with compass.

preferencesAboutTextFull
Aleksei Kanash 12 years ago
parent 473b3e008e
commit bf714e192f
  1. 1
      src/adaptors/UBSvgSubsetAdaptor.cpp
  2. 2
      src/domain/UBGraphicsScene.cpp

@ -591,6 +591,7 @@ UBGraphicsScene* UBSvgSubsetAdaptor::UBSvgSubsetReader::loadScene()
if(strokesGroup){ if(strokesGroup){
polygonItem->setTransform(strokesGroup->transform()); polygonItem->setTransform(strokesGroup->transform());
strokesGroup->addToGroup(polygonItem); strokesGroup->addToGroup(polygonItem);
polygonItem->setStrokesGroup(strokesGroup);
} }
}else{ }else{
mScene->addItem(polygonItem); mScene->addItem(polygonItem);

@ -541,12 +541,14 @@ bool UBGraphicsScene::inputDeviceRelease()
mAddedItems.remove(mArcPolygonItem); mAddedItems.remove(mArcPolygonItem);
removeItem(mArcPolygonItem); removeItem(mArcPolygonItem);
UBCoreGraphicsScene::removeItemFromDeletion(mArcPolygonItem); UBCoreGraphicsScene::removeItemFromDeletion(mArcPolygonItem);
mArcPolygonItem->setStrokesGroup(pStrokes);
pStrokes->addToGroup(mArcPolygonItem); pStrokes->addToGroup(mArcPolygonItem);
// Add the center cross // Add the center cross
foreach(QGraphicsItem* item, mAddedItems){ foreach(QGraphicsItem* item, mAddedItems){
removeItem(item); removeItem(item);
UBCoreGraphicsScene::removeItemFromDeletion(item); UBCoreGraphicsScene::removeItemFromDeletion(item);
mArcPolygonItem->setStrokesGroup(pStrokes);
pStrokes->addToGroup(item); pStrokes->addToGroup(item);
} }

Loading…
Cancel
Save