- cel = new wxHtmlImageCell(str,
- (int)(m_WParser -> GetPixelScale() * (double)w),
- (int)(m_WParser -> GetPixelScale() * (double)h),
- al, mn);
+ int neww = (w == -1) ? -1 : (int)(m_WParser -> GetPixelScale() * (double)w),
+ newh = (h == -1) ? -1 : (int)(m_WParser -> GetPixelScale() * (double)h);
+
+ cel = new wxHtmlImageCell(str, neww, newh, al, mn);