fixing issues when creating a new document
parent
d8ef7f3e0e
commit
cf76afc4ad
|
@ -2306,9 +2306,11 @@
|
||||||
$.confirm(uiStrings.notification.QwantToClear, function(ok) {
|
$.confirm(uiStrings.notification.QwantToClear, function(ok) {
|
||||||
if(!ok) return;
|
if(!ok) return;
|
||||||
setSelectMode();
|
setSelectMode();
|
||||||
|
svgCanvas.deleteSelectedElements();
|
||||||
svgCanvas.clear();
|
svgCanvas.clear();
|
||||||
svgCanvas.setResolution(dims[0], dims[1]);
|
svgCanvas.setResolution(dims[0], dims[1]);
|
||||||
updateCanvas(true);
|
updateCanvas(true);
|
||||||
|
createBackground();
|
||||||
zoomImage();
|
zoomImage();
|
||||||
updateContextPanel();
|
updateContextPanel();
|
||||||
prepPaints();
|
prepPaints();
|
||||||
|
|
Loading…
Reference in New Issue