]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/htmlcell.cpp
Adding MSVC makefile support for building the TIFF library
[wxWidgets.git] / src / html / htmlcell.cpp
index 71633156ea371002239144af3da5644b5fe3933e..e8680be944ef868e670de1f7822dcca267d65e2f 100644 (file)
@@ -390,7 +390,7 @@ void wxHtmlContainerCell::SetAlign(const wxHtmlTag& tag)
 
 
 
-void wxHtmlContainerCell::SetWidthFloat(const wxHtmlTag& tag)
+void wxHtmlContainerCell::SetWidthFloat(const wxHtmlTag& tag, double pixel_scale)
 {
     if (tag.HasParam("WIDTH")) {
         int wdi;
@@ -402,7 +402,7 @@ void wxHtmlContainerCell::SetWidthFloat(const wxHtmlTag& tag)
         }
         else {
             wxSscanf(wd.c_str(), wxT("%i"), &wdi);
-            SetWidthFloat(wdi, wxHTML_UNITS_PIXELS);
+            SetWidthFloat((int)(pixel_scale * (double)wdi), wxHTML_UNITS_PIXELS);
         }
     }
 }