Fixed crash on calling Externutil in empty area

This commit is contained in:
Alexander S. Aganichev 2001-09-16 20:17:32 +00:00
parent 4a98ad62d2
commit 7d3cb0f569
3 changed files with 5 additions and 1 deletions

View File

@ -12,6 +12,8 @@ ______________________________________________________________________
Notes for GoldED+ 1.1.5, /snapshot/ Notes for GoldED+ 1.1.5, /snapshot/
______________________________________________________________________ ______________________________________________________________________
- Fixed crash on calling Externutil in empty area.
- GoldED+ will now treat all unknown charsets to be equal to - GoldED+ will now treat all unknown charsets to be equal to
Xlatimport. Xlatimport.

View File

@ -67,6 +67,9 @@ void SaveLines(int mode, const char* savefile, GMsg* msg, int margin, bool clip)
} }
} }
#else #else
msg->attr.tou1();
msg->TextToLines(margin);
msg->attr.tou0();
TemplateToText(((mode == MODE_WRITE) and prnheader) ? ((prnheader & WRITE_ONLY_HEADER) ? MODE_HEADER : MODE_WRITEHEADER) : MODE_WRITE, msg, msg, AA->WTpl(), CurrArea); TemplateToText(((mode == MODE_WRITE) and prnheader) ? ((prnheader & WRITE_ONLY_HEADER) ? MODE_HEADER : MODE_WRITEHEADER) : MODE_WRITE, msg, msg, AA->WTpl(), CurrArea);
msg->attr.tou1(); msg->attr.tou1();
msg->TextToLines(margin); msg->TextToLines(margin);

View File

@ -883,7 +883,6 @@ int MsgIsTwit(GMsg* msg, bool& istwitto, bool& istwitsubj) {
int LoadMessage(GMsg* msg, int margin) { int LoadMessage(GMsg* msg, int margin) {
GFTRK("LoadMessage"); GFTRK("LoadMessage");
if(AA->LoadMsg(msg, AA->Msgn.CvtReln(AA->lastread()), margin)) { if(AA->LoadMsg(msg, AA->Msgn.CvtReln(AA->lastread()), margin)) {
// Mark message as received, if it is for us // Mark message as received, if it is for us