FreeBSD Bugzilla – Attachment 122326 Details for
Bug 165503
[patch] fix crash for editors/madedit
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.48 KB, created by
buganini
on 2012-02-27 12:20:07 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
buganini
Created:
2012-02-27 12:20:07 UTC
Size:
1.48 KB
patch
obsolete
>diff -ruN madedit.orig/Makefile madedit/Makefile >--- madedit.orig/Makefile 2012-02-27 20:08:23.000000000 +0800 >+++ madedit/Makefile 2012-02-27 20:08:32.000000000 +0800 >@@ -7,7 +7,7 @@ > > PORTNAME= madedit > PORTVERSION= 0.2.9 >-PORTREVISION= 5 >+PORTREVISION= 6 > CATEGORIES= editors > MASTER_SITES= SF/${PORTNAME}/MadEdit/MadEdit-${PORTVERSION} > >diff -ruN madedit.orig/files/patch-src-MadEdit-MadEdit.cpp madedit/files/patch-src-MadEdit-MadEdit.cpp >--- madedit.orig/files/patch-src-MadEdit-MadEdit.cpp 1970-01-01 08:00:00.000000000 +0800 >+++ madedit/files/patch-src-MadEdit-MadEdit.cpp 2012-02-27 20:08:06.000000000 +0800 >@@ -0,0 +1,24 @@ >+--- src/MadEdit/MadEdit.cpp.orig 2012-02-27 20:06:18.000000000 +0800 >++++ src/MadEdit/MadEdit.cpp 2012-02-27 20:07:26.000000000 +0800 >+@@ -9739,7 +9739,9 @@ >+ { >+ if(m_EditMode!=emHexMode) >+ { >+- memdc.SelectObject(*m_ClientBitmap); >++ if(m_ClientBitmap!=NULL) { >++ memdc.SelectObject(*m_ClientBitmap); >++ } >+ memdc.SetFont(*m_TextFont); >+ >+ // calculate rows to paint >+@@ -9917,7 +9919,9 @@ >+ >+ if(bPaintMark==false) >+ { >+- markdc.SelectObject(*m_MarkBitmap); >++ if(m_MarkBitmap!=NULL) { >++ markdc.SelectObject(*m_MarkBitmap); >++ } >+ markdc.Blit(0,0,m_ClientWidth,m_ClientHeight, &memdc, 0, 0); >+ bPaintMark=true; >+ }
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 165503
: 122326