Fix bug in calculation of circle location
authorKaiting Chen <ktchen14@gmail.com>
Thu, 24 Apr 2025 21:20:07 +0000 (17:20 -0400)
committerMagnus Hagander <magnus@hagander.net>
Fri, 25 Apr 2025 15:32:36 +0000 (17:32 +0200)
postgresqleu/confreg/jinjapdf.py

index 56cc24950e4fb132f30f617994850e3f267c7158..f10be6e1b8051358e9aa71dc5d0543b2f4c9b327 100755 (executable)
@@ -86,7 +86,7 @@ class JinjaFlowable(Flowable):
             else:
                 self.canv.setStrokeColor(get_color(o['stroke']))
         self.canv.circle(getmm(o, 'x'),
-                         self.height - getmm(o, 'y') - (getmm(o, 'radius') / 2),
+                         self.height - getmm(o, 'y') - getmm(o, 'radius'),
                          getmm(o, 'radius'),
                          stroke=stroke,
                          fill=fill)