TonyKang 5 vuotta sitten
vanhempi
commit
8a7a3245b2
1 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 3 3
      app/public/report/js/rpt_jspdf.js

+ 3 - 3
app/public/report/js/rpt_jspdf.js

@@ -122,7 +122,9 @@ let JpcJsPDFHelper = {
             } else {
                 control = cell[JV.PROP_CONTROL];
             }
-            if (cell.path) {
+            if (cell.pic) {
+                private_drawImage(doc, ctx, cell, control, cell.pic);
+            } else if (cell.path) {
                 let finded = false;
                 for (const rtpSignRel of signatureRelArr) {
                     if (!finded) {
@@ -135,8 +137,6 @@ let JpcJsPDFHelper = {
                         }
                     }
                 }
-            } else if (cell.pic) {
-                private_drawImage(doc, ctx, cell, control, cell.pic);
             }
         }