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/
______________________________________________________________________
- Fixed crash on calling Externutil in empty area.
- GoldED+ will now treat all unknown charsets to be equal to
Xlatimport.

View File

@ -67,6 +67,9 @@ void SaveLines(int mode, const char* savefile, GMsg* msg, int margin, bool clip)
}
}
#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);
msg->attr.tou1();
msg->TextToLines(margin);

View File

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