From 7d3cb0f569f59163faed93aae5b0eec51426a298 Mon Sep 17 00:00:00 2001 From: "Alexander S. Aganichev" Date: Sun, 16 Sep 2001 20:17:32 +0000 Subject: [PATCH] Fixed crash on calling Externutil in empty area --- docs/notework.txt | 2 ++ golded3/gedoit.cpp | 3 +++ golded3/geread.cpp | 1 - 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/notework.txt b/docs/notework.txt index b384ba4..14bc074 100644 --- a/docs/notework.txt +++ b/docs/notework.txt @@ -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. diff --git a/golded3/gedoit.cpp b/golded3/gedoit.cpp index 9fc96fb..c659be0 100644 --- a/golded3/gedoit.cpp +++ b/golded3/gedoit.cpp @@ -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); diff --git a/golded3/geread.cpp b/golded3/geread.cpp index 2842748..8a99d8d 100644 --- a/golded3/geread.cpp +++ b/golded3/geread.cpp @@ -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