From a85d362f3b53319b0754eaba02dc37e93dc9f2fe Mon Sep 17 00:00:00 2001 From: Marco Hugentobler Date: Fri, 23 Aug 2013 10:41:57 +0200 Subject: [PATCH] Fix form annotations not showing in composer --- src/gui/qgsformannotationitem.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/qgsformannotationitem.cpp b/src/gui/qgsformannotationitem.cpp index acb46ad68205..ae0c398fb3e2 100644 --- a/src/gui/qgsformannotationitem.cpp +++ b/src/gui/qgsformannotationitem.cpp @@ -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();