fixed bug that caused assertion failure when printing HTML with images
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5814 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -373,10 +373,10 @@ TAG_HANDLER_BEGIN(IMG, "IMG,MAP,AREA")
|
|||||||
}
|
}
|
||||||
wxHtmlImageCell *cel = NULL;
|
wxHtmlImageCell *cel = NULL;
|
||||||
if (str) {
|
if (str) {
|
||||||
cel = new wxHtmlImageCell(str,
|
int neww = (w == -1) ? -1 : (int)(m_WParser -> GetPixelScale() * (double)w),
|
||||||
(int)(m_WParser -> GetPixelScale() * (double)w),
|
newh = (h == -1) ? -1 : (int)(m_WParser -> GetPixelScale() * (double)h);
|
||||||
(int)(m_WParser -> GetPixelScale() * (double)h),
|
|
||||||
al, mn);
|
cel = new wxHtmlImageCell(str, neww, newh, al, mn);
|
||||||
cel -> SetLink(m_WParser -> GetLink());
|
cel -> SetLink(m_WParser -> GetLink());
|
||||||
m_WParser -> GetContainer() -> InsertCell(cel);
|
m_WParser -> GetContainer() -> InsertCell(cel);
|
||||||
delete str;
|
delete str;
|
||||||
|
Reference in New Issue
Block a user