After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 323592 - Reset menus in sheet menu causes random text
Reset menus in sheet menu causes random text
Status: RESOLVED FIXED
Product: dia
Classification: Other
Component: general
CVS head
Other All
: Normal critical
: 0.95
Assigned To: Dia maintainers
Dia maintainers
Depends on:
Blocks:
 
 
Reported: 2005-12-08 21:32 UTC by Lars Clausen
Modified: 2006-01-02 19:53 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Lars Clausen 2005-12-08 21:32:43 UTC
Please describe the problem:
When the reset menus item is chosen in the sheet menu, random text like 'H' or
'P+[ ackson' is inserted instead of the removed entries, and Dia complains.  Not
unlikely to cause memory corruption.

Steps to reproduce:
1. Remove your ~/.dia directory
2. Open a new diagram
3. Select a few sheets from the 'Sheets->Other Sheets' menu
4. Select 'Reset menu' from the 'Sheets' menu


Actual results:
A warning dialog comes up saying no sheet named [arbitrary string].
The same string becomes the only 'extra' sheet.

Expected results:
All 'extra' sheets should be removed.

Does this happen every time?
Yes.

Other information:
May be affecting color selection too.
Comment 1 Hans Breuer 2006-01-02 19:53:11 UTC
2006-01-02  Hans Breuer  <hans@breuer.org>

	* lib/widgets.c(dia_dynamic_menu_reset) : don't use an already
	freed string to dia_dynamic_menu_select_entry(). Fixes bug #323592.