diff options
Diffstat (limited to 'printing')
-rw-r--r-- | printing/printed_document.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/printing/printed_document.cc b/printing/printed_document.cc index 2369618..5993b3d 100644 --- a/printing/printed_document.cc +++ b/printing/printed_document.cc @@ -184,7 +184,8 @@ void PrintedDocument::PrintHeaderFooter(gfx::NativeDrawingContext context, // May happen if document name or url is empty. return; } - const gfx::Size string_size(font.GetStringWidth(output), font.GetHeight()); + const gfx::Size string_size(font.GetStringWidth(WideToUTF16Hack(output)), + font.GetHeight()); gfx::Rect bounding; bounding.set_height(string_size.height()); const gfx::Rect& overlay_area( |