[ wxwindows-Bugs-1692994 ] wxMotif 2.8.3: wxDC::SetTextForeground changes line color

SourceForge.net noreply at sourceforge.net
Mon Apr 2 07:14:11 PDT 2007


Bugs item #1692994, was opened at 2007-04-02 16:14
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1692994&group_id=9863

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: wxMotif specific
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Jochen Roemmler (jroemmler)
Assigned to: Nobody/Anonymous (nobody)
Summary: wxMotif 2.8.3: wxDC::SetTextForeground changes line color

Initial Comment:
Calling wxDC::SetTextForeground in a wxMotif configuration also changes the current 'line' color, although the active wxPen claims to be the correct color. I have stripped down samples/render/render.cpp and added some painting code in OnPaint to show the unexpected influence: both lines should appear in green color.

The bug is also visible in wxMotif-2.6.3.

A (nasty) work-around is to re-set the line color using wxDC::SetPen() immediately before drawing lines instead of relying on the current pen color.

System information follows:
---------------------------
# uname -a
Linux orion 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:32:02 EDT 2006 x86_64 x86_64 x86_64 GNU/Linux

# cat /etc/redhat-release
Red Hat Enterprise Linux ES release 4 (Nahant Update 4)

# gmake -s render && ldd render
libwx_motifd-2.8.so.0 => ..../libwx_motifd-2.8.so.0
libstdc++.so.6 => /usr/lib64/libstdc++.so.6
libm.so.6 => /lib64/tls/libm.so.6
libgcc_s.so.1 => /lib64/libgcc_s.so.1
libpthread.so.0 => /lib64/tls/libpthread.so.0
libc.so.6 => /lib64/tls/libc.so.6
libz.so.1 => /usr/lib64/libz.so.1
libdl.so.2 => /lib64/libdl.so.2
libXm.so.3 => /usr/X11R6/lib64/libXm.so.3
libXmu.so.6 => /usr/X11R6/lib64/libXmu.so.6
libXext.so.6 => /usr/X11R6/lib64/libXext.so.6
libXt.so.6 => /usr/X11R6/lib64/libXt.so.6
libX11.so.6 => /usr/X11R6/lib64/libX11.so.6
libXinerama.so.1 => /usr/X11R6/lib64/libXinerama.so.1
libXxf86vm.so.1 => /usr/X11R6/lib64/libXxf86vm.so.1
libSM.so.6 => /usr/X11R6/lib64/libSM.so.6
libpng12.so.0 => /usr/lib64/libpng12.so.0
libjpeg.so.62 => /usr/lib64/libjpeg.so.62
libtiff.so.3 => /usr/lib64/libtiff.so.3
libexpat.so.0 => /usr/lib64/libexpat.so.0
/lib64/ld-linux-x86-64.so.2
libICE.so.6 => /usr/X11R6/lib64/libICE.so.6
libXp.so.6 => /usr/X11R6/lib64/libXp.so.6

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1692994&group_id=9863




More information about the wx-dev mailing list