OMNeT++/OMNEST Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000221OMNeT++runtime / Tkenvpublic2010-12-09 15:142010-12-09 15:38
Assigned Toandras 
PlatformLinux / GNOME DesktopOSOS Version
Product Version4.1 
Target Version4.2Fixed in Version4.2 
Summary0000221: Negative zoom when opening a network window in Tkenv
DescriptionI have some strange behavior in OMNeT++ 4.1. In some cases when I launch the execution model in Tkenv mode one or more window have a very small zoom value (the displayed value on the upper right of the window is even negative!). The shortest way to solve it is to close this window and to open it again and then it has a “normal” zoom value. Closing the “bad” window and re-generating the network will solve the problem (at least for this simulation session).

Screenshot attached.

Reported by Patrick Haeflinger
TagsNo tags attached.
Attached Filesjpg file icon zoom_pb.jpg [^] (33,339 bytes) 2010-12-09 15:17

patch file icon tkenv-bug221.patch [^] (2,024 bytes) 2010-12-09 15:33 [Show Content]

- Relationships

-  Notes
andras (administrator)
2010-12-09 15:20

Could not reproduce it, but inspecting the proc "graphmodwin_adjust_windowsize_and_zoom" in modinsp2.tcl indicates it might be caused by the winfo width / winfo height commands returning zero. This usually happens if the window is no displayed yet, and (apparently) it may occur even later.
andras (administrator)
2010-12-09 15:37

Attached a patch that should fix it (although I could not test because I could not reproduce the bug).

- Issue History
Date Modified Username Field Change
2010-12-09 15:14 andras New Issue
2010-12-09 15:14 andras Assigned To => andras
2010-12-09 15:17 andras File Added: zoom_pb.jpg
2010-12-09 15:20 andras Note Added: 0000344
2010-12-09 15:33 andras File Added: tkenv-bug221.patch
2010-12-09 15:37 andras Note Added: 0000345
2010-12-09 15:38 andras Status new => resolved
2010-12-09 15:38 andras Fixed in Version => 4.2
2010-12-09 15:38 andras Resolution open => fixed

Copyright © 2000 - 2022 MantisBT Team
Powered by Mantis Bugtracker