Skip to content
Permalink
Browse files

[layout] Converter: fix frame fill in shapes

  • Loading branch information
elpaso committed Dec 16, 2017
1 parent af8a229 commit 4302910f94abd5e05b29b1b8fa7acfba8c5db118
Showing with 4 additions and 0 deletions.
  1. +3 −0 src/core/layout/qgscompositionconverter.cpp
  2. +1 −0 tests/src/core/testqgscompositionconverter.cpp
@@ -403,6 +403,9 @@ bool QgsCompositionConverter::readShapeXml( QgsLayoutItemShape *layoutItem, cons

layoutItem->setSymbol( QgsFillSymbol::createSimple( properties ) );
}
// Diable frame for shapes
layoutItem->setFrameEnabled( false );
layoutItem->setBackgroundEnabled( false );

return true;
}
@@ -183,6 +183,7 @@ void TestQgsCompositionConverter::importComposerTemplateShape()
QCOMPARE( shape->backgroundColor(), QColor( 255, 255, 255, 255 ) );
QCOMPARE( ( int )shape->rotation(), 0 );
QCOMPARE( shape->hasFrame(), false );
QCOMPARE( shape->hasBackground(), false );

qDeleteAll( items );
}

0 comments on commit 4302910

Please sign in to comment.
You can’t perform that action at this time.