View | Details | Raw Unified | Return to bug 165503
Collapse All | Expand All

(-)madedit/Makefile (-1 / +1 lines)
Lines 7-13 Link Here
7
7
8
PORTNAME=	madedit
8
PORTNAME=	madedit
9
PORTVERSION=	0.2.9
9
PORTVERSION=	0.2.9
10
PORTREVISION=	5
10
PORTREVISION=	6
11
CATEGORIES=	editors
11
CATEGORIES=	editors
12
MASTER_SITES=	SF/${PORTNAME}/MadEdit/MadEdit-${PORTVERSION}
12
MASTER_SITES=	SF/${PORTNAME}/MadEdit/MadEdit-${PORTVERSION}
13
13
(-)madedit/files/patch-src-MadEdit-MadEdit.cpp (+24 lines)
Line 0 Link Here
1
--- src/MadEdit/MadEdit.cpp.orig	2012-02-27 20:06:18.000000000 +0800
2
+++ src/MadEdit/MadEdit.cpp	2012-02-27 20:07:26.000000000 +0800
3
@@ -9739,7 +9739,9 @@
4
     {
5
         if(m_EditMode!=emHexMode)
6
         {
7
-            memdc.SelectObject(*m_ClientBitmap);
8
+            if(m_ClientBitmap!=NULL) {
9
+                memdc.SelectObject(*m_ClientBitmap);
10
+            }
11
             memdc.SetFont(*m_TextFont);
12
 
13
             // calculate rows to paint
14
@@ -9917,7 +9919,9 @@
15
 
16
                 if(bPaintMark==false)
17
                 {
18
-                    markdc.SelectObject(*m_MarkBitmap);
19
+                    if(m_MarkBitmap!=NULL) {
20
+                        markdc.SelectObject(*m_MarkBitmap);
21
+                    }
22
                     markdc.Blit(0,0,m_ClientWidth,m_ClientHeight, &memdc, 0, 0);
23
                     bPaintMark=true;
24
                 }

Return to bug 165503