Skip to content
Permalink
Browse files

Remove invalid/crashing QgsComposerHtml constructor (fixes #12009)

  • Loading branch information
wonder-sk committed Jun 18, 2015
1 parent 99c16bb commit 0c5352fad611efe99ad8322fc1d5a465df561712
@@ -16,9 +16,6 @@ class QgsComposerHtml: QgsComposerMultiFrame

QgsComposerHtml( QgsComposition* c /TransferThis/, bool createUndoCommands );

//should be private - fix for QGIS 3.0
QgsComposerHtml();

~QgsComposerHtml();

/**Sets the source mode for item's HTML content.
@@ -87,27 +87,6 @@ QgsComposerHtml::QgsComposerHtml( QgsComposition* c, bool createUndoCommands )

}

QgsComposerHtml::QgsComposerHtml()
: QgsComposerMultiFrame( 0, false )
, mContentMode( QgsComposerHtml::Url )
, mWebPage( 0 )
, mLoaded( false )
, mHtmlUnitsToMM( 1.0 )
, mRenderedPage( 0 )
, mEvaluateExpressions( true )
, mUseSmartBreaks( true )
, mMaxBreakDistance( 10 )
, mExpressionFeature( 0 )
, mExpressionLayer( 0 )
, mDistanceArea( 0 )
, mEnableUserStylesheet( false )
, mFetcher( 0 )
{
mDistanceArea = new QgsDistanceArea();
mFetcher = new QgsNetworkContentFetcher();
connect( mFetcher, SIGNAL( finished() ), this, SLOT( frameLoaded() ) );
}

QgsComposerHtml::~QgsComposerHtml()
{
delete mDistanceArea;
@@ -41,9 +41,6 @@ class CORE_EXPORT QgsComposerHtml: public QgsComposerMultiFrame

QgsComposerHtml( QgsComposition* c, bool createUndoCommands );

//should be private - fix for QGIS 3.0
QgsComposerHtml();

~QgsComposerHtml();

/**Sets the source mode for item's HTML content.

0 comments on commit 0c5352f

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