Skip to content

Commit 050c0ff

Browse files
committedJul 27, 2012
Fix update of html frames
1 parent 70fe6cf commit 050c0ff

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed
 

‎src/app/composer/qgscomposerhtmlwidget.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ void QgsComposerHtmlWidget::on_mFileToolButton_clicked()
5151
QUrl url = QUrl::fromLocalFile( file );
5252
mHtml->setUrl( url );
5353
mUrlLineEdit->setText( url.toString() );
54+
mHtml->update();
5455
}
5556
}
5657

‎src/core/composer/qgscomposerhtml.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ void QgsComposerHtml::setUrl( const QUrl& url )
6464

6565
mSize.setWidth( contentsSize.width() / mHtmlUnitsToMM );
6666
mSize.setHeight( contentsSize.height() / mHtmlUnitsToMM );
67+
recalculateFrameSizes();
6768
}
6869

6970
void QgsComposerHtml::frameLoaded( bool ok )

0 commit comments

Comments
 (0)
Please sign in to comment.