fixed issue with strokes made using a pen

preferencesAboutTextFull
Claudio Valerio 12 years ago
parent ea025a5f6d
commit 01d2e3d96b
  1. 8
      src/domain/UBGraphicsScene.cpp

@ -629,8 +629,8 @@ bool UBGraphicsScene::inputDeviceRelease()
if (mCurrentStroke && mCurrentStroke->polygons().empty()){
delete mCurrentStroke;
}
mCurrentStroke = NULL;
}
return accepted;
}
@ -2302,10 +2302,12 @@ void UBGraphicsScene::setToolCursor(int tool)
if (mCurrentStroke && mCurrentStroke->polygons().empty()){
delete mCurrentStroke;
}
mCurrentStroke = NULL;
}
void UBGraphicsScene::initStroke(){
}
void UBGraphicsScene::initStroke()
{
mCurrentStroke = new UBGraphicsStroke();
}

Loading…
Cancel
Save