changeset 2561:4d5f419a2318

client:pdf-gen: improve box drawing * handle the case when the rectangle is not rounded (rounding=0)
author Fadi Abbud <fadi.abbud@intevation.de>
date Fri, 08 Mar 2019 16:49:40 +0100
parents f3211d888317
children ce39e9954e85
files client/src/components/Pdftool.vue
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/Pdftool.vue	Fri Mar 08 13:38:11 2019 +0100
+++ b/client/src/components/Pdftool.vue	Fri Mar 08 16:49:40 2019 +0100
@@ -327,7 +327,8 @@
                   e.offset || defaultOffset,
                   e.width,
                   e.height,
-                  e.rounding || defaultRounding,
+                  // handling the case when the rectangle  not rounded (rounding = 0)
+                  e.rounding === 0 || e.rounding ? e.rounding : defaultRounding,
                   e.color || defaultBgColor
                 );
                 break;
@@ -338,7 +339,7 @@
                   e.offset || defaultOffset,
                   e.width,
                   e.height,
-                  e.rounding || defaultRounding,
+                  e.rounding === 0 || e.rounding ? e.rounding : defaultRounding,
                   e.padding || defaultPadding,
                   e.fontSize || defaultFontSize,
                   e.color || defaultTextColor,