mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-25 14:22:54 -06:00
GridCtrl: Fixed setting incorrect value for option column if it was a last column copied from excel
git-svn-id: svn://ultimatepp.org/upp/trunk@5614 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
3976c1a649
commit
bbca44affe
1 changed files with 2 additions and 3 deletions
|
|
@ -707,8 +707,6 @@ void GridCtrl::SetClipboard(bool all, bool silent)
|
|||
body.Remove(cnt - 1);
|
||||
}
|
||||
|
||||
LOG(body);
|
||||
|
||||
String header;
|
||||
|
||||
if(copy_column_names)
|
||||
|
|
@ -826,7 +824,8 @@ void GridCtrl::Paste(int mode)
|
|||
|
||||
for(int i = 0; i < lines.GetCount(); i++)
|
||||
{
|
||||
Vector<String> cells = Upp::Split(lines[i], '\t', false);
|
||||
String line = TrimRight(lines[i]);
|
||||
Vector<String> cells = Upp::Split(line, '\t', false);
|
||||
for(int j = 0; j < cells.GetCount(); j++)
|
||||
{
|
||||
int r = i;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue