mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
some minor bug patches
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@855 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
fa2ff9cf70
commit
bbdd9486e4
@ -30,6 +30,8 @@
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
|
||||
\********************************************************************/
|
||||
|
||||
#ifdef COMPILATION_UNIT_IS_EMPTY_DUUDE
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "messages.h"
|
||||
@ -485,5 +487,6 @@ xaccGetChangeFlag (BasicRegister *reg)
|
||||
|
||||
return changed;
|
||||
}
|
||||
#endif /* COMPILATION_UNIT_IS_EMPTY_DUUDE */
|
||||
|
||||
/* ============ END OF FILE ===================== */
|
||||
|
@ -197,8 +197,13 @@ xaccTableResize (Table * table,
|
||||
int new_phys_rows, int new_phys_cols,
|
||||
int new_virt_rows, int new_virt_cols)
|
||||
{
|
||||
/* hack alert -- should check to make sure that no null pointers
|
||||
* or bad values were passed in ... */
|
||||
if (!table) return;
|
||||
if ((new_phys_rows < new_virt_rows) ||
|
||||
(new_phys_cols < new_virt_cols)) {
|
||||
printf ("Internal Error: xaccTableResize(): the number of "
|
||||
"physical rows must equal or exceed the number of virtual rows \n");
|
||||
exit (1);
|
||||
}
|
||||
|
||||
/* resize the string data array */
|
||||
RESIZE_ARR ((table->num_phys_rows),
|
||||
|
Loading…
Reference in New Issue
Block a user