Skip to content

Commit

Permalink
Fix for buggy print recreation from snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
mapcentia committed Feb 2, 2022
1 parent 04a0902 commit 546ec39
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions browser/modules/print.js
Original file line number Diff line number Diff line change
Expand Up @@ -505,12 +505,6 @@ module.exports = {
},

getPrintParams: () => {
if (paramsFromDb) {
setTimeout(() => {
paramsFromDb = null;
}, 0);
return paramsFromDb;
}

var layerQueryDraw = [], layerQueryResult = [], layerQueryBuffer = [], layerPrint = [], e, parr,
configFile = null;
Expand All @@ -523,6 +517,13 @@ module.exports = {
recEdit.editing.disable();
} catch (e) {
}
recEdit[recEdit.length - 1]?.editing.enable();
if (paramsFromDb) {
setTimeout(() => {
paramsFromDb = null;
}, 0);
return paramsFromDb;
}
let anchorRaw = anchor.getAnchor();
anchorRaw = anchorRaw.substr(0, anchorRaw.lastIndexOf(`/`));

Expand Down Expand Up @@ -629,7 +630,6 @@ module.exports = {
}
data.config = parr.join();
}
recEdit[recEdit.length - 1]?.editing.enable();
return data;
},

Expand Down

0 comments on commit 546ec39

Please sign in to comment.