File pgcalc-lcdcrash.diff of Package pgcalc

diff -ur pgcalc/src/tlcd.cpp pgcalc2-2.2-4/src/tlcd.cpp
--- src/tlcd.cpp	2004-05-09 19:35:05.000000000 +0200
+++ src/tlcd.cpp	2006-02-08 12:05:00.000000000 +0100
@@ -221,6 +221,9 @@
 //---------------------------------------------------------------------------------------
 void TLCDDisplay::drawText( int X, int Y, const char* Text, TLCDFont* AFont )
 {
+   if (!Text)
+     return;
+
    unsigned int j;
    int x;
    //QPainter p( _owner );
openSUSE Build Service is sponsored by