File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -249,7 +249,10 @@ ReportWindow::_ComputeCashFlow()
249
249
Fixed f;
250
250
251
251
incomegrid.ValueAt (columnindex, i, f);
252
- gCurrentLocale .CurrencyToString (f, temp);
252
+ if (f == 0 )
253
+ temp = " -" ;
254
+ else
255
+ gCurrentLocale .CurrencyToString (f, temp);
253
256
254
257
BStringField* amountfield = new BStringField (temp.String ());
255
258
row->SetField (amountfield, columnindex + 1 );
@@ -279,7 +282,10 @@ ReportWindow::_ComputeCashFlow()
279
282
Fixed f;
280
283
281
284
expensegrid.ValueAt (columnindex, i, f);
282
- gCurrentLocale .CurrencyToString (f, temp);
285
+ if (f == 0 )
286
+ temp = " -" ;
287
+ else
288
+ gCurrentLocale .CurrencyToString (f, temp);
283
289
284
290
BStringField* amountfield = new BStringField (temp.String ());
285
291
row->SetField (amountfield, columnindex + 1 );
You can’t perform that action at this time.
0 commit comments