From df7007f077d97c6b24a56190627976a4ba15ace6 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Thu, 28 Jan 1999 17:19:06 +0000 Subject: [PATCH] oops. I got the patch wrong svn path=/trunk/kdebase/konsole/; revision=16082 --- src/TEWidget.C | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/TEWidget.C b/src/TEWidget.C index f3135c78..25f97858 100644 --- a/src/TEWidget.C +++ b/src/TEWidget.C @@ -342,8 +342,7 @@ HCNT("paintEvent"); for (int y = luy; y <= rly; y++) for (int x = lux; x <= rlx; x++) - char *disstr = 0; - { disstr = char char[columns]; int len = 1; + { char *disstr = new char[columns]; int len = 1; disstr[0] = image[loc(x,y)].c; int cf = image[loc(x,y)].f; int cb = image[loc(x,y)].b; @@ -359,8 +358,8 @@ HCNT("paintEvent"); QRect(blX+tLx+font_w*x,bY+tLy+font_h*y,font_w*len,font_h), disstr, len, image[loc(x,y)], pm != NULL); x += len - 1; + delete disstr; } - delete disstr; drawFrame( &paint ); paint.end(); setUpdatesEnabled(TRUE);