mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
fix quickfill core dump
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@243 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
3b37a3cc38
commit
96f5891b5d
@ -2767,9 +2767,9 @@ regCB( Widget mw, XtPointer cd, XtPointer cb )
|
||||
regData->qf = getQuickFill( regData->qf, mvcbs->prev_text[i] );
|
||||
}
|
||||
|
||||
/* hack alert -- text pointer not valid if non-alpha key hit */
|
||||
/* this will core dump, since ptr is NULL */
|
||||
/* this is not fixed, since the fix is not obvious to me ... */
|
||||
/* ptr will be NULL if the delete key or other
|
||||
* non-alphanumeric key hit */
|
||||
if (mvcbs->verify->text->ptr) {
|
||||
input = (mvcbs->verify->text->ptr)[0];
|
||||
|
||||
/* go to qf's child node that corresponds to the
|
||||
@ -2801,6 +2801,7 @@ regCB( Widget mw, XtPointer cd, XtPointer cb )
|
||||
XbaeMatrixSetCursorPosition( mw, regData->insert );
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
if( IN_DATE_CELL(row,col) )
|
||||
dateCellFormat( mw, mvcbs, 0); /* format according to date
|
||||
|
Loading…
Reference in New Issue
Block a user