Skip to content

Commit a209a6b

Browse files
committed
Copy resolution of source image (fix issue #1702)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
1 parent 8be2346 commit a209a6b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ccmain/thresholder.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,8 @@ void ImageThresholder::ThresholdRectToPix(Pix* src_pix,
303303
int wpl = pixGetWpl(*pix);
304304
int src_wpl = pixGetWpl(src_pix);
305305
uint32_t* srcdata = pixGetData(src_pix);
306+
pixSetXRes(*pix, pixGetXRes(src_pix));
307+
pixSetYRes(*pix, pixGetYRes(src_pix));
306308
for (int y = 0; y < rect_height_; ++y) {
307309
const uint32_t* linedata = srcdata + (y + rect_top_) * src_wpl;
308310
uint32_t* pixline = pixdata + y * wpl;

0 commit comments

Comments
 (0)