Skip to content

Commit a85d362

Browse files
committedAug 23, 2013
Fix form annotations not showing in composer
1 parent d100628 commit a85d362

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/gui/qgsformannotationitem.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ QgsFormAnnotationItem::QgsFormAnnotationItem( QgsMapCanvas* canvas, QgsVectorLay
3737
mHasAssociatedFeature( hasFeature ), mFeature( feature )
3838
{
3939
mWidgetContainer = new QGraphicsProxyWidget( this );
40+
mWidgetContainer->setData( 0, "AnnotationItem" ); //mark embedded widget as belonging to an annotation item (composer knows it needs to be printed)
4041
if ( mVectorLayer && mMapCanvas ) //default to the layers edit form
4142
{
4243
mDesignerForm = mVectorLayer->annotationForm();

0 commit comments

Comments
 (0)
Please sign in to comment.