Skip to content

Commit 6f6dd6c

Browse files
committed
fixed height/depth values shown when processing preview data
1 parent 1a8a94e commit 6f6dd6c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/PsSpecialHandler.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,10 @@ void PsSpecialHandler::dviEndPage (unsigned, SpecialActions &actions) {
553553
w = actions.bbox().width();
554554
h = max(0.0, -actions.bbox().minY());
555555
d = max(0.0, actions.bbox().maxY());
556+
if (d == 0)
557+
h = actions.bbox().height();
558+
else if (h == 0)
559+
d = actions.bbox().height();
556560
Message::mstream() << "\ncomputing extents based on data set by";
557561
}
558562
Message::mstream() << " preview package (version " << _previewHandler.version() << ")\n";

0 commit comments

Comments
 (0)