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 |
} |