summaryrefslogtreecommitdiff
path: root/src/PSEditWidget.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/PSEditWidget.cxx')
-rw-r--r--src/PSEditWidget.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/PSEditWidget.cxx b/src/PSEditWidget.cxx
index 6b2a472..0a500c4 100644
--- a/src/PSEditWidget.cxx
+++ b/src/PSEditWidget.cxx
@@ -403,7 +403,7 @@ int PSEditWidget::ps_to_display_x(int x1) {
}
int PSEditWidget::ps_to_display_y(int y1) {
- return round_div((paper_y - y1) * xdpi, 72);
+ return round_div((paper_y - y1) * ydpi, 72);
}
int PSEditWidget::ps_x(int x1) {