Commit 7b4550bd authored by Anna Medonosova's avatar Anna Medonosova
Browse files

Fix creating vector shapes with pattern fill

BUG: 405037
parent 917d6980
......@@ -160,7 +160,7 @@ void KisTool::canvasResourceChanged(int key, const QVariant & v)
d->currentBgColor = v.value<KoColor>();
break;
case(KisCanvasResourceProvider::CurrentPattern):
d->currentPattern = static_cast<KoPattern *>(v.value<void *>());
d->currentPattern = v.value<KoPattern*>();
break;
case(KisCanvasResourceProvider::CurrentGradient):
d->currentGradient = static_cast<KoAbstractGradient *>(v.value<void *>());
......
Supports Markdown
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