mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
fix the balance amounts shown in the status bar
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@2221 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
cb31a068c0
commit
9a3a055aec
@ -15,8 +15,11 @@
|
||||
* GNU General Public License for more details. *
|
||||
* *
|
||||
* You should have received a copy of the GNU General Public License*
|
||||
* along with this program; if not, write to the Free Software *
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
|
||||
* along with this program; if not, contact: *
|
||||
* *
|
||||
* Free Software Foundation Voice: +1-617-542-5942 *
|
||||
* 59 Temple Place - Suite 330 Fax: +1-617-542-2652 *
|
||||
* Boston, MA 02111-1307, USA gnu@gnu.org *
|
||||
\********************************************************************/
|
||||
|
||||
#include "top-level.h"
|
||||
@ -165,6 +168,17 @@ gnc_ui_refresh_statusbar (void)
|
||||
}
|
||||
}
|
||||
|
||||
/* check to see wether GUI should display reversed signs */
|
||||
if (GNC_F == gnc_reverse_balance_type(EQUITY))
|
||||
{
|
||||
assets = -assets;
|
||||
euro_assets = -euro_assets;
|
||||
}
|
||||
if (GNC_F == gnc_reverse_balance_type(INCOME))
|
||||
{
|
||||
profits = -profits;
|
||||
euro_profits = -euro_profits;
|
||||
}
|
||||
|
||||
xaccSPrintAmount(asset_string, assets, PRTSYM | PRTSEP, NULL);
|
||||
if(euro)
|
||||
|
Loading…
Reference in New Issue
Block a user