GNOME Bugzilla – Bug 135381
Doubleclick on barchart legend open a wrong account
Last modified: 2018-06-29 20:41:28 UTC
When doubleclicking on the account name on barchart GnuCash opens a wrong register window or zooms a wrong account. For example in the file included below clicking on account "One" open account "Four", clicking "Two" opens "Three", etc. This bug did not exist in gnucash 1.6 <?xml version="1.0"?> <gnc-v2> <gnc:count-data cd:type="book">1</gnc:count-data> <gnc:book version="2.0.0"> <book:id type="guid">c63e03510875167dc073cb6d72c83da7</book:id> <gnc:count-data cd:type="account">10</gnc:count-data> <gnc:count-data cd:type="transaction">9</gnc:count-data> <gnc:account version="2.0.0"> <act:name>Assets</act:name> <act:id type="guid">69d7c15f86aa646937c2348fe208903a</act:id> <act:type>ASSET</act:type> <act:commodity> <cmdty:space>ISO4217</cmdty:space> <cmdty:id>PLN</cmdty:id> </act:commodity> <act:commodity-scu>100</act:commodity-scu> <act:description>Assets</act:description> <act:slots> <slot> <slot:key>placeholder</slot:key> <slot:value type="string">true</slot:value> </slot> </act:slots> </gnc:account> <gnc:account version="2.0.0"> <act:name>Current Assets</act:name> <act:id type="guid">7474f78b01ca2cb01141aa4d3d1fa13e</act:id> <act:type>ASSET</act:type> <act:commodity> <cmdty:space>ISO4217</cmdty:space> <cmdty:id>PLN</cmdty:id> </act:commodity> <act:commodity-scu>100</act:commodity-scu> <act:description>Current Assets</act:description> <act:slots> <slot> <slot:key>placeholder</slot:key> <slot:value type="string">false</slot:value> </slot> </act:slots> <act:parent type="guid">69d7c15f86aa646937c2348fe208903a</act:parent> </gnc:account> <gnc:account version="2.0.0"> <act:name>Expenses</act:name> <act:id type="guid">ff85f488b2425da7e54823ff42fb9d18</act:id> <act:type>EXPENSE</act:type> <act:commodity> <cmdty:space>ISO4217</cmdty:space> <cmdty:id>PLN</cmdty:id> </act:commodity> <act:commodity-scu>100</act:commodity-scu> <act:description>Expenses</act:description> <act:slots> <slot> <slot:key>placeholder</slot:key> <slot:value type="string">true</slot:value> </slot> <slot> <slot:key>notes</slot:key> <slot:value type="string"></slot:value> </slot> </act:slots> </gnc:account> <gnc:account version="2.0.0"> <act:name>Four</act:name> <act:id type="guid">5281b0dafc895945c52a1f3b11ed835d</act:id> <act:type>EXPENSE</act:type> <act:commodity> <cmdty:space>ISO4217</cmdty:space> <cmdty:id>PLN</cmdty:id> </act:commodity> <act:commodity-scu>100</act:commodity-scu> <act:slots> <slot> <slot:key>placeholder</slot:key> <slot:value type="string">false</slot:value> </slot> <slot> <slot:key>notes</slot:key> <slot:value type="string"></slot:value> </slot> </act:slots> <act:parent type="guid">ff85f488b2425da7e54823ff42fb9d18</act:parent> </gnc:account> <gnc:account version="2.0.0"> <act:name>One</act:name> <act:id type="guid">95da2f7001eb5dd8c9854e5df8d73535</act:id> <act:type>EXPENSE</act:type> <act:commodity> <cmdty:space>ISO4217</cmdty:space> <cmdty:id>PLN</cmdty:id> </act:commodity> <act:commodity-scu>100</act:commodity-scu> <act:slots> <slot> <slot:key>placeholder</slot:key> <slot:value type="string">false</slot:value> </slot> <slot> <slot:key>notes</slot:key> <slot:value type="string"></slot:value> </slot> </act:slots> <act:parent type="guid">ff85f488b2425da7e54823ff42fb9d18</act:parent> </gnc:account> <gnc:account version="2.0.0"> <act:name>Three</act:name> <act:id type="guid">71ae936053869406b0646c991f10a04b</act:id> <act:type>EXPENSE</act:type> <act:commodity> <cmdty:space>ISO4217</cmdty:space> <cmdty:id>PLN</cmdty:id> </act:commodity> <act:commodity-scu>100</act:commodity-scu> <act:slots> <slot> <slot:key>placeholder</slot:key> <slot:value type="string">false</slot:value> </slot> <slot> <slot:key>notes</slot:key> <slot:value type="string"></slot:value> </slot> </act:slots> <act:parent type="guid">ff85f488b2425da7e54823ff42fb9d18</act:parent> </gnc:account> <gnc:account version="2.0.0"> <act:name>Two</act:name> <act:id type="guid">235b0bb65cc40cfbd2fa3112fef73597</act:id> <act:type>EXPENSE</act:type> <act:commodity> <cmdty:space>ISO4217</cmdty:space> <cmdty:id>PLN</cmdty:id> </act:commodity> <act:commodity-scu>100</act:commodity-scu> <act:slots> <slot> <slot:key>placeholder</slot:key> <slot:value type="string">false</slot:value> </slot> <slot> <slot:key>notes</slot:key> <slot:value type="string"></slot:value> </slot> </act:slots> <act:parent type="guid">ff85f488b2425da7e54823ff42fb9d18</act:parent> </gnc:account> <gnc:account version="2.0.0"> <act:name>Equity</act:name> <act:id type="guid">dec4705f87afd31906635eb4724c8aab</act:id> <act:type>EQUITY</act:type> <act:commodity> <cmdty:space>ISO4217</cmdty:space> <cmdty:id>PLN</cmdty:id> </act:commodity> <act:commodity-scu>100</act:commodity-scu> <act:description>Equity</act:description> <act:slots> <slot> <slot:key>placeholder</slot:key> <slot:value type="string">true</slot:value> </slot> </act:slots> </gnc:account> <gnc:account version="2.0.0"> <act:name>Opening Balances</act:name> <act:id type="guid">288b5e215d9482139b60be6149592cd5</act:id> <act:type>EQUITY</act:type> <act:commodity> <cmdty:space>ISO4217</cmdty:space> <cmdty:id>PLN</cmdty:id> </act:commodity> <act:commodity-scu>100</act:commodity-scu> <act:description>Opening Balances</act:description> <act:parent type="guid">dec4705f87afd31906635eb4724c8aab</act:parent> </gnc:account> <gnc:transaction version="2.0.0"> <trn:id type="guid">7f2abf034523f5c55768b27f3a643fcb</trn:id> <trn:currency> <cmdty:space>ISO4217</cmdty:space> <cmdty:id>PLN</cmdty:id> </trn:currency> <trn:date-posted> <ts:date>2004-01-01 00:00:00 +0100</ts:date> </trn:date-posted> <trn:date-entered> <ts:date>2004-02-24 22:03:37 +0100</ts:date> <ts:ns>303840000</ts:ns> </trn:date-entered> <trn:description>Opening Balance</trn:description> <trn:splits> <trn:split> <split:id type="guid">6f13105e670da4f14d0e94367f1e0472</split:id> <split:reconciled-state>n</split:reconciled-state> <split:value>10000000/100</split:value> <split:quantity>10000000/100</split:quantity> <split:account type="guid">7474f78b01ca2cb01141aa4d3d1fa13e</split: account> </trn:split> <trn:split> <split:id type="guid">d43610af0313fcbf4bbc5752d24d08ad</split:id> <split:reconciled-state>n</split:reconciled-state> <split:value>-10000000/100</split:value> <split:quantity>-10000000/100</split:quantity> <split:account type="guid">288b5e215d9482139b60be6149592cd5</split: account> </trn:split> </trn:splits> </gnc:transaction> <gnc:transaction version="2.0.0"> <trn:id type="guid">17c0f6e3221fee5610edba27c0c94c78</trn:id> <trn:currency> <cmdty:space>ISO4217</cmdty:space> <cmdty:id>PLN</cmdty:id> </trn:currency> <trn:date-posted> <ts:date>2004-01-24 00:00:00 +0100</ts:date> </trn:date-posted> <trn:date-entered> <ts:date>2004-02-24 22:06:23 +0100</ts:date> <ts:ns>780244000</ts:ns> </trn:date-entered> <trn:description>Buy1</trn:description> <trn:splits> <trn:split> <split:id type="guid">3cbaef996c91af4dfe284b556fd190cf</split:id> <split:reconciled-state>n</split:reconciled-state> <split:value>1000/100</split:value> <split:quantity>1000/100</split:quantity> <split:account type="guid">95da2f7001eb5dd8c9854e5df8d73535</split: account> </trn:split> <trn:split> <split:id type="guid">ef4342fce4b7570cb1fe8e5023fb2ffa</split:id> <split:reconciled-state>n</split:reconciled-state> <split:value>-1000/100</split:value> <split:quantity>-1000/100</split:quantity> <split:account type="guid">7474f78b01ca2cb01141aa4d3d1fa13e</split: account> </trn:split> </trn:splits> </gnc:transaction> <gnc:transaction version="2.0.0"> <trn:id type="guid">435b736545758fb341a53ebf627a46fc</trn:id> <trn:currency> <cmdty:space>ISO4217</cmdty:space> <cmdty:id>PLN</cmdty:id> </trn:currency> <trn:date-posted> <ts:date>2004-01-24 00:00:00 +0100</ts:date> </trn:date-posted> <trn:date-entered> <ts:date>2004-02-24 22:06:31 +0100</ts:date> <ts:ns>147328000</ts:ns> </trn:date-entered> <trn:description>Buy2</trn:description> <trn:splits> <trn:split> <split:id type="guid">0983036ce2e9e5bfa68505228e17b0b8</split:id> <split:reconciled-state>n</split:reconciled-state> <split:value>1500/100</split:value> <split:quantity>1500/100</split:quantity> <split:account type="guid">235b0bb65cc40cfbd2fa3112fef73597</split: account> </trn:split> <trn:split> <split:id type="guid">503a40707d8335a281514c87fc823a8f</split:id> <split:reconciled-state>n</split:reconciled-state> <split:value>-1500/100</split:value> <split:quantity>-1500/100</split:quantity> <split:account type="guid">7474f78b01ca2cb01141aa4d3d1fa13e</split: account> </trn:split> </trn:splits> </gnc:transaction> <gnc:transaction version="2.0.0"> <trn:id type="guid">4239ce7915a9d37b710dcdc54dc1a709</trn:id> <trn:currency> <cmdty:space>ISO4217</cmdty:space> <cmdty:id>PLN</cmdty:id> </trn:currency> <trn:date-posted> <ts:date>2004-01-24 00:00:00 +0100</ts:date> </trn:date-posted> <trn:date-entered> <ts:date>2004-02-24 22:06:39 +0100</ts:date> <ts:ns>597454000</ts:ns> </trn:date-entered> <trn:description>Buy3</trn:description> <trn:splits> <trn:split> <split:id type="guid">b9ac28b85a37775bb9d6c303c5524b0a</split:id> <split:reconciled-state>n</split:reconciled-state> <split:value>2000/100</split:value> <split:quantity>2000/100</split:quantity> <split:account type="guid">71ae936053869406b0646c991f10a04b</split: account> </trn:split> <trn:split> <split:id type="guid">b656edfff810ee4f20cc1a89ac4f28cd</split:id> <split:reconciled-state>n</split:reconciled-state> <split:value>-2000/100</split:value> <split:quantity>-2000/100</split:quantity> <split:account type="guid">7474f78b01ca2cb01141aa4d3d1fa13e</split: account> </trn:split> </trn:splits> </gnc:transaction> <gnc:transaction version="2.0.0"> <trn:id type="guid">db968fd7f53d02a17d53a053914d52ed</trn:id> <trn:currency> <cmdty:space>ISO4217</cmdty:space> <cmdty:id>PLN</cmdty:id> </trn:currency> <trn:date-posted> <ts:date>2004-01-24 00:00:00 +0100</ts:date> </trn:date-posted> <trn:date-entered> <ts:date>2004-02-24 22:06:46 +0100</ts:date> <ts:ns>361204000</ts:ns> </trn:date-entered> <trn:description>Buy4</trn:description> <trn:splits> <trn:split> <split:id type="guid">cbb3eba1994999feb174bae4d1f33eb0</split:id> <split:reconciled-state>n</split:reconciled-state> <split:value>2500/100</split:value> <split:quantity>2500/100</split:quantity> <split:account type="guid">5281b0dafc895945c52a1f3b11ed835d</split: account> </trn:split> <trn:split> <split:id type="guid">1b31e00427ff98f2531557e4e9493023</split:id> <split:reconciled-state>n</split:reconciled-state> <split:value>-2500/100</split:value> <split:quantity>-2500/100</split:quantity> <split:account type="guid">7474f78b01ca2cb01141aa4d3d1fa13e</split: account> </trn:split> </trn:splits> </gnc:transaction> <gnc:transaction version="2.0.0"> <trn:id type="guid">df488d57d68ba52d33ffe93eba41b204</trn:id> <trn:currency> <cmdty:space>ISO4217</cmdty:space> <cmdty:id>PLN</cmdty:id> </trn:currency> <trn:date-posted> <ts:date>2004-02-24 00:00:00 +0100</ts:date> </trn:date-posted> <trn:date-entered> <ts:date>2004-02-24 22:05:14 +0100</ts:date> </trn:date-entered> <trn:description>Buy1</trn:description> <trn:splits> <trn:split> <split:id type="guid">61617d0734393063355db11516bb14f3</split:id> <split:reconciled-state>n</split:reconciled-state> <split:value>1200/100</split:value> <split:quantity>1200/100</split:quantity> <split:account type="guid">95da2f7001eb5dd8c9854e5df8d73535</split: account> </trn:split> <trn:split> <split:id type="guid">d8cf48405470622fba5d01c8c4cdf3a2</split:id> <split:reconciled-state>n</split:reconciled-state> <split:value>-1200/100</split:value> <split:quantity>-1200/100</split:quantity> <split:account type="guid">7474f78b01ca2cb01141aa4d3d1fa13e</split: account> </trn:split> </trn:splits> </gnc:transaction> <gnc:transaction version="2.0.0"> <trn:id type="guid">9164723ac686281470f6c44650ea09f2</trn:id> <trn:currency> <cmdty:space>ISO4217</cmdty:space> <cmdty:id>PLN</cmdty:id> </trn:currency> <trn:date-posted> <ts:date>2004-02-24 00:00:00 +0100</ts:date> </trn:date-posted> <trn:date-entered> <ts:date>2004-02-24 22:05:29 +0100</ts:date> <ts:ns>978025000</ts:ns> </trn:date-entered> <trn:description>Buy2</trn:description> <trn:splits> <trn:split> <split:id type="guid">b9e63a65b46b69a75a156766a4752aa8</split:id> <split:reconciled-state>n</split:reconciled-state> <split:value>1700/100</split:value> <split:quantity>1700/100</split:quantity> <split:account type="guid">235b0bb65cc40cfbd2fa3112fef73597</split: account> </trn:split> <trn:split> <split:id type="guid">af7c3eb62cd1cd1be21a0e156786b139</split:id> <split:reconciled-state>n</split:reconciled-state> <split:value>-1700/100</split:value> <split:quantity>-1700/100</split:quantity> <split:account type="guid">7474f78b01ca2cb01141aa4d3d1fa13e</split: account> </trn:split> </trn:splits> </gnc:transaction> <gnc:transaction version="2.0.0"> <trn:id type="guid">493f0c066754381e565c3fd3543b759b</trn:id> <trn:currency> <cmdty:space>ISO4217</cmdty:space> <cmdty:id>PLN</cmdty:id> </trn:currency> <trn:date-posted> <ts:date>2004-02-24 00:00:00 +0100</ts:date> </trn:date-posted> <trn:date-entered> <ts:date>2004-02-24 22:05:43 +0100</ts:date> <ts:ns>923912000</ts:ns> </trn:date-entered> <trn:description>Buy3</trn:description> <trn:splits> <trn:split> <split:id type="guid">ccd8ce25dc86778f5fade476a245c831</split:id> <split:reconciled-state>n</split:reconciled-state> <split:value>2200/100</split:value> <split:quantity>2200/100</split:quantity> <split:account type="guid">71ae936053869406b0646c991f10a04b</split: account> </trn:split> <trn:split> <split:id type="guid">0c2d9b66741a639f7656e971c659e46d</split:id> <split:reconciled-state>n</split:reconciled-state> <split:value>-2200/100</split:value> <split:quantity>-2200/100</split:quantity> <split:account type="guid">7474f78b01ca2cb01141aa4d3d1fa13e</split: account> </trn:split> </trn:splits> </gnc:transaction> <gnc:transaction version="2.0.0"> <trn:id type="guid">d0c6c7f6a5722fc0b0a6d75632515d21</trn:id> <trn:currency> <cmdty:space>ISO4217</cmdty:space> <cmdty:id>PLN</cmdty:id> </trn:currency> <trn:date-posted> <ts:date>2004-02-24 00:00:00 +0100</ts:date> </trn:date-posted> <trn:date-entered> <ts:date>2004-02-24 22:05:58 +0100</ts:date> <ts:ns>943548000</ts:ns> </trn:date-entered> <trn:description>Buy4</trn:description> <trn:splits> <trn:split> <split:id type="guid">e02380aee32b26231fb026bfb7ea4d4b</split:id> <split:reconciled-state>n</split:reconciled-state> <split:value>2700/100</split:value> <split:quantity>2700/100</split:quantity> <split:account type="guid">5281b0dafc895945c52a1f3b11ed835d</split: account> </trn:split> <trn:split> <split:id type="guid">3515efcdfa0aaca6f9e28d35dd3bdcc8</split:id> <split:reconciled-state>n</split:reconciled-state> <split:value>-2700/100</split:value> <split:quantity>-2700/100</split:quantity> <split:account type="guid">7474f78b01ca2cb01141aa4d3d1fa13e</split: account> </trn:split> </trn:splits> </gnc:transaction> </gnc:book> </gnc-v2> <!-- Local variables: --> <!-- mode: xml --> <!-- End: -->
This is a problem with the latest available release of the Guppi graphical library. Your problem might be related to bug#102268 . As mentioned there, in gnucash there is a patch for Guppi 0.40.3 under lib/guppi-legend.patch. Could you try to get a Guppi 0.40.3 package, apply that patch, install and see whether your problem still occurs? Thanks a lot.
Is there any news about whether the outlined fix will actually fix the problem (hence the problem isn't on the gnucash side)? Changing the state to NEEDINFO since this is needed first.
I managed to recompile Guppi with that patch. Sorry for the delay, but apparently gnucash LXR is broken and I had to get the full gnucash 1. 8.8 source archive. The patch did not apply to Guppi source (I used FC1 Guppi-0.40.3-16 SRPM). I had to remove the first and the last chunk - those were only comments anyway. The patch fixes the problem. Thank for your help! I will forward it to Redhat for possible inclusion in their distribution.
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=135381. Please update any external references or bookmarks.