Skip to content

Commit

Permalink
[layout] Converter: fix frame fill in shapes
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Jan 9, 2018
1 parent af8a229 commit 4302910
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/layout/qgscompositionconverter.cpp
Expand Up @@ -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;
}
Expand Down
1 change: 1 addition & 0 deletions tests/src/core/testqgscompositionconverter.cpp
Expand Up @@ -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 );
}
Expand Down

0 comments on commit 4302910

Please sign in to comment.