From: <sie...@us...> - 2013-12-07 05:02:14
|
Revision: 5462 http://sourceforge.net/p/moneymanagerex/code/5462 Author: siena123 Date: 2013-12-07 05:02:09 +0000 (Sat, 07 Dec 2013) Log Message: ----------- restore category separators Modified Paths: -------------- branches/version_1.0.0.0/src/reports/categexp.cpp Modified: branches/version_1.0.0.0/src/reports/categexp.cpp =================================================================== --- branches/version_1.0.0.0/src/reports/categexp.cpp 2013-12-07 04:42:06 UTC (rev 5461) +++ branches/version_1.0.0.0/src/reports/categexp.cpp 2013-12-07 05:02:09 UTC (rev 5462) @@ -134,7 +134,7 @@ line.categs = categs; data.push_back(line); } - else if (categs > 0) + else if (categs > 0 || amt != 0) { // Insert place holder to add a seperator line.name = ""; @@ -196,11 +196,13 @@ { if (entry.name != "") { - hb.addRowSeparator(0); - hb.startTableRow(); - hb.addTableCell(entry.name, false, true, true, "GRAY"); - hb.addMoneyCell(entry.amount, "GRAY"); - hb.endTableRow(); + if (entry.amount != 0) + { + hb.startTableRow(); + hb.addTableCell(entry.name, false, true, true, "GRAY"); + hb.addMoneyCell(entry.amount, "GRAY"); + hb.endTableRow(); + } } hb.addRowSeparator(2); endSeparator = true; @@ -208,10 +210,18 @@ } else { - hb.startTableRow(); - hb.addTableCell(entry.name, false, true); - hb.addMoneyCell(entry.amount); - hb.endTableRow(); + if (entry.amount != 0) + { + hb.startTableRow(); + hb.addTableCell(entry.name, false, true); + hb.addMoneyCell(entry.amount); + hb.endTableRow(); + } + else + { + hb.addRowSeparator(2); + endSeparator = true; + } } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |