Skip to content

Commit

Permalink
Fix form annotations not showing in composer
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Aug 23, 2013
1 parent d100628 commit a85d362
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/qgsformannotationitem.cpp
Expand Up @@ -37,6 +37,7 @@ QgsFormAnnotationItem::QgsFormAnnotationItem( QgsMapCanvas* canvas, QgsVectorLay
mHasAssociatedFeature( hasFeature ), mFeature( feature )
{
mWidgetContainer = new QGraphicsProxyWidget( this );
mWidgetContainer->setData( 0, "AnnotationItem" ); //mark embedded widget as belonging to an annotation item (composer knows it needs to be printed)
if ( mVectorLayer && mMapCanvas ) //default to the layers edit form
{
mDesignerForm = mVectorLayer->annotationForm();
Expand Down

0 comments on commit a85d362

Please sign in to comment.