Commit 69176208 authored by Alexander.Trofimov's avatar Alexander.Trofimov

fix autofit column/row

parent 79efb9be
...@@ -10367,8 +10367,9 @@ ...@@ -10367,8 +10367,9 @@
return; return;
} }
if (null === col1) { if (null === col1) {
col1 = t.activeRange.c1; var lastSelection = t.model.selectionRange.getLast();
col2 = t.activeRange.c2; col1 = lastSelection.c1;
col2 = lastSelection.c2;
} }
var w, bUpdate = false; var w, bUpdate = false;
...@@ -10400,8 +10401,9 @@ ...@@ -10400,8 +10401,9 @@
return; return;
} }
if (null === row1) { if (null === row1) {
row1 = t.activeRange.r1; var lastSelection = t.model.selectionRange.getLast();
row2 = t.activeRange.r2; row1 = lastSelection.r1;
row2 = lastSelection.r2;
} }
History.Create_NewPoint(); History.Create_NewPoint();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment