Commit f3467272 authored by Dick Hollenbeck's avatar Dick Hollenbeck

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

parent bfc72b01
...@@ -583,6 +583,8 @@ private: ...@@ -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: ...@@ -607,6 +609,7 @@ private:
#endif #endif
} }
} }
}
void onCancelButtonClick( wxCommandEvent& event ) void onCancelButtonClick( wxCommandEvent& event )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment