From 7a3c73483c17da8f669fe3551ad274a02144486a Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 26 Mar 2021 16:36:29 +1100 Subject: Bug [#2224]. Switch XYPOSITION to double so it has more precision to fix problems with very long documents. Fixes uneven line heights on Cocoa after around 1.1 million lines. --- cocoa/QuartzTextLayout.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cocoa') diff --git a/cocoa/QuartzTextLayout.h b/cocoa/QuartzTextLayout.h index 0c234fe39..1f7adc241 100644 --- a/cocoa/QuartzTextLayout.h +++ b/cocoa/QuartzTextLayout.h @@ -72,7 +72,7 @@ public: * @param gc The CGContext in which to draw the text. * @param x The x axis position to draw the baseline in the current CGContext. * @param y The y axis position to draw the baseline in the current CGContext. */ - void draw(CGContextRef gc, float x, float y) { + void draw(CGContextRef gc, double x, double y) { if (!mLine) return; -- cgit v1.2.3