mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-11-23 09:26:27 -06:00
bug fix.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@2404 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
25c306d5af
commit
7c9f8a47de
@ -120,12 +120,17 @@ quick_modify (BasicCell *_cell,
|
||||
|
||||
if (cell->original == NULL)
|
||||
cell->original = g_strdup(newval);
|
||||
else
|
||||
else if (strcasecmp(cell->original, oldval) == 0)
|
||||
{
|
||||
char *original = g_strconcat(cell->original, change, NULL);
|
||||
g_free(cell->original);
|
||||
cell->original = original;
|
||||
}
|
||||
else
|
||||
{
|
||||
g_free(cell->original);
|
||||
cell->original = NULL;
|
||||
}
|
||||
|
||||
match = xaccGetQuickFillStr(cell->qfRoot, newval);
|
||||
|
||||
@ -136,7 +141,7 @@ quick_modify (BasicCell *_cell,
|
||||
else
|
||||
retval = newval;
|
||||
|
||||
*cursor_position += strlen(change);
|
||||
*cursor_position = -1;
|
||||
|
||||
SET (&(cell->cell), retval);
|
||||
return retval;
|
||||
|
Loading…
Reference in New Issue
Block a user