Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit f6e67d22 authored by Ivan Yossi's avatar Ivan Yossi 👌

Minor whitespace formatting

parent 8817890b
......@@ -609,7 +609,7 @@ void KisStrokeBrushSelectionActionFactory::run(KisViewManager *view, StrokeSelec
KisFigurePaintingToolHelper helper(kundo2_i18n("Draw Polyline"),
image,
currentNode,
rManager ,
rManager,
strokeStyle,
fillStyle);
helper.setFGColorOverride(color);
......
/*
* Copyright (c) 2004 Boudewijn Rempt <boud@valdyas.org>
* Copyright (c) 2007 Sven Langkamp <sven.langkamp@gmail.com>
......@@ -653,10 +654,10 @@ void KisSelectionManager::slotStrokeSelection()
{
KisImageWSP image = m_view->image();
if (!image ) {
if (!image ) {
return;
}
KisNodeSP currentNode = m_view->canvasResourceProvider()->resourceManager()->resource(KisCanvasResourceProvider::CurrentKritaNode).value<KisNodeWSP>();
bool isVectorLayer = false;
if (currentNode->inherits("KisShapeLayer")) {
......
......@@ -233,8 +233,7 @@ void KisPainterBasedStrokeStrategy::initStrokeCallback()
bool hasIndirectPainting = supportsIndirectPainting() && m_resources->needsIndirectPainting();
const QString indirectCompositeOp = m_resources->indirectPaintingCompositeOp();
KisSelectionSP selection = m_resources->activeSelection();
KisSelectionSP selection = m_resources->activeSelection();
if (hasIndirectPainting) {
KisIndirectPaintingSupport *indirect =
......@@ -264,7 +263,6 @@ void KisPainterBasedStrokeStrategy::initStrokeCallback()
m_transaction = new KisTransaction(name(), targetDevice);
}
// WARNING: masked brush cannot work without indirect painting mode!
KIS_SAFE_ASSERT_RECOVER_NOOP(!(supportsMaskingBrush() &&
m_resources->needsMaskingBrushRendering()) || hasIndirectPainting);
......
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