trivial fix, katepart

Christoph Cullmann cullmann at babylon2k.de
Sat Feb 26 11:11:00 GMT 2005


hi,
anybody objections backporting this oneliner?

----------  Forwarded Message  ----------

Subject: kdelibs/kate/part
Date: Saturday 26 February 2005 00:32
From: Christoph Cullmann <cullmann at kde.org>
To: kde-cvs at kde.org
Cc: 98743-done at bugs.kde.org

CVS commit by cullmann:

BUG:98743
could somebody test and verify + backport?


  M +4 -0      katedocument.cpp   1.797


--- kdelibs/kate/part/katedocument.cpp  #1.796:1.797
@@ -3475,4 +3475,8 @@ void KateDocument::selectWord( const Kat

   KateTextLine::Ptr textLine = m_buffer->plainLine(cursor.line());
+
+  if (!textLine)
+    return;
+
   len = textLine->length();
   start = end = cursor.col();

-------------------------------------------------------

-- 
Christoph Cullmann
KDE Developer, kde.org Maintainance Team
http://www.babylon2k.de, cullmann at kde.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20050226/5ebd1d69/attachment.sig>


More information about the kde-core-devel mailing list