Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 177421 Details for
Bug 261821
Debian patches not applied + 2 interesting patches from CVS
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Fix ossible printing of text outside widget area
lesstif-0.95-text.patch (text/plain), 1.55 KB, created by
Hans de Goede
on 2007-08-28 22:07:17 UTC
(
hide
)
Description:
Fix ossible printing of text outside widget area
Filename:
MIME Type:
Creator:
Hans de Goede
Created:
2007-08-28 22:07:17 UTC
Size:
1.55 KB
patch
obsolete
>--- lesstif-0.95/lib/Xm-2.1/TextF.c 2006/04/19 18:42:22 1.9 >+++ lesstif-0.95/lib/Xm-2.1/TextF.c 2007/02/06 19:05:57 1.10 >@@ -1,6 +1,6 @@ > /** > * >- * $Header: /cvsroot/lesstif/lesstif/lib/Xm-2.1/TextF.c,v 1.9 2006/04/19 18:42:22 dannybackx Exp $ >+ * $Header: /cvsroot/lesstif/lesstif/lib/Xm-2.1/TextF.c,v 1.10 2007/02/06 19:05:57 dannybackx Exp $ > * > * Copyright (C) 1995 Free Software Foundation, Inc. > * Copyright © 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2004, 2005 LessTif Development Team >@@ -23,7 +23,7 @@ > * > **/ > >-static const char rcsid[] = "$Header: /cvsroot/lesstif/lesstif/lib/Xm-2.1/TextF.c,v 1.9 2006/04/19 18:42:22 dannybackx Exp $"; >+static const char rcsid[] = "$Header: /cvsroot/lesstif/lesstif/lib/Xm-2.1/TextF.c,v 1.10 2007/02/06 19:05:57 dannybackx Exp $"; > > #include <LTconfig.h> > >@@ -2312,8 +2312,11 @@ > ww = wid; > > /* Protect against overwriting the left/right borders. */ >- if (x < bw) >+ if (x < bw) { > xx = bw; >+ ww -= bw - x; >+ } >+ > if (XtWidth(w) < xx + ww + bw) > ww = XtWidth(w) - 2 * bw - xx; > >@@ -2323,11 +2326,13 @@ > xx, bh, > ww, > XtHeight(w) - 2 * bh)); >- XClearArea(XtDisplay((Widget)w), XtWindow(w), >- xx, bh, >- ww /* XtWidth(w) - 2 * bw */, >- XtHeight(w) - 2 * bh, >- False); >+ >+ if (ww > 0) >+ XClearArea(XtDisplay((Widget)w), XtWindow(w), >+ xx, bh, >+ ww /* XtWidth(w) - 2 * bw */, >+ XtHeight(w) - 2 * bh, >+ False); > > XSetForeground(XtDisplay(w), TextF_DrawGC(w), Prim_Foreground(w)); > XSetBackground(XtDisplay(w), TextF_DrawGC(w), XtBackground(w));
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 261821
:
177401
| 177421