FIX: only invoke fp-lib-table options editor when table not empty.

This commit is contained in:
Dick Hollenbeck 2013-12-31 10:59:33 -06:00
parent bfc72b0183
commit f346727214
1 changed files with 20 additions and 17 deletions

View File

@ -583,6 +583,8 @@ private:
{ {
FP_TBL_MODEL* tbl = cur_model(); FP_TBL_MODEL* tbl = cur_model();
if( tbl->GetNumberRows() )
{
int curRow = getCursorRow(); int curRow = getCursorRow();
ROW& row = tbl->rows[curRow]; ROW& row = tbl->rows[curRow];
@ -607,6 +609,7 @@ private:
#endif #endif
} }
} }
}
void onCancelButtonClick( wxCommandEvent& event ) void onCancelButtonClick( wxCommandEvent& event )
{ {