summaryrefslogtreecommitdiffstats
path: root/printing
diff options
context:
space:
mode:
Diffstat (limited to 'printing')
-rw-r--r--printing/image.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/printing/image.cc b/printing/image.cc
index 5c5213f..a7ae67d 100644
--- a/printing/image.cc
+++ b/printing/image.cc
@@ -60,10 +60,10 @@ bool Image::SaveToPng(const FilePath& filepath) const {
std::vector<unsigned char> compressed;
bool success = gfx::PNGCodec::Encode(&*data_.begin(),
gfx::PNGCodec::FORMAT_BGRA,
- size_.width(),
- size_.height(),
+ size_,
row_length_,
true,
+ std::vector<gfx::PNGCodec::Comment>(),
&compressed);
DCHECK(success && compressed.size());
if (success) {