Commit 01d2e3d9 authored by Claudio Valerio's avatar Claudio Valerio

fixed issue with strokes made using a pen

parent ea025a5f
......@@ -629,8 +629,8 @@ bool UBGraphicsScene::inputDeviceRelease()
if (mCurrentStroke && mCurrentStroke->polygons().empty()){
delete mCurrentStroke;
mCurrentStroke = NULL;
}
mCurrentStroke = NULL;
return accepted;
}
......@@ -2302,10 +2302,12 @@ void UBGraphicsScene::setToolCursor(int tool)
if (mCurrentStroke && mCurrentStroke->polygons().empty()){
delete mCurrentStroke;
mCurrentStroke = NULL;
}
mCurrentStroke = NULL;
}
void UBGraphicsScene::initStroke(){
void UBGraphicsScene::initStroke()
{
mCurrentStroke = new UBGraphicsStroke();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment