diff options
author | delphij <delphij@FreeBSD.org> | 2012-02-28 04:29:41 +0800 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2012-02-28 04:29:41 +0800 |
commit | 0839e712bbccf57e51ea268cc6939ac45c552f1a (patch) | |
tree | 59d7a93b075764ebaf60d22426b81af0afe53dea /editors | |
parent | 653097f42519296f6641cffe1b8b25a81a51a870 (diff) | |
download | freebsd-ports-gnome-0839e712bbccf57e51ea268cc6939ac45c552f1a.tar.gz freebsd-ports-gnome-0839e712bbccf57e51ea268cc6939ac45c552f1a.tar.zst freebsd-ports-gnome-0839e712bbccf57e51ea268cc6939ac45c552f1a.zip |
Fix a crash when opening multiple files in an instance.
Submitted by: Kuan-Chung Chiu <buganini gmail.com>
PR: ports/165503
Diffstat (limited to 'editors')
-rw-r--r-- | editors/madedit/Makefile | 2 | ||||
-rw-r--r-- | editors/madedit/files/patch-src__MadEdit__MadEdit.cpp | 24 |
2 files changed, 25 insertions, 1 deletions
diff --git a/editors/madedit/Makefile b/editors/madedit/Makefile index 0023525599b2..8a30c157b455 100644 --- a/editors/madedit/Makefile +++ b/editors/madedit/Makefile @@ -7,7 +7,7 @@ PORTNAME= madedit PORTVERSION= 0.2.9 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= editors MASTER_SITES= SF/${PORTNAME}/MadEdit/MadEdit-${PORTVERSION} diff --git a/editors/madedit/files/patch-src__MadEdit__MadEdit.cpp b/editors/madedit/files/patch-src__MadEdit__MadEdit.cpp new file mode 100644 index 000000000000..1202b9f69d26 --- /dev/null +++ b/editors/madedit/files/patch-src__MadEdit__MadEdit.cpp @@ -0,0 +1,24 @@ +--- ./src/MadEdit/MadEdit.cpp.orig 2012-02-27 11:29:01.012086960 -0800 ++++ ./src/MadEdit/MadEdit.cpp 2012-02-27 11:29:01.141087896 -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; + } |