]> git.saurik.com Git - wxWidgets.git/commitdiff
minor bug fix
authorKarsten Ballüder <ballueder@usa.net>
Sun, 16 May 1999 23:42:31 +0000 (23:42 +0000)
committerKarsten Ballüder <ballueder@usa.net>
Sun, 16 May 1999 23:42:31 +0000 (23:42 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2479 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

user/wxLayout/wxllist.cpp

index 9d55127fdd5ac5c35fb8ef9f68f1d17a1bd8f4bf..9c687de6d923a33c9c38e0b45521aaf78b814db4 100644 (file)
@@ -1248,7 +1248,7 @@ wxLayoutLine::Copy(wxLayoutList *llist,
    wxLOiterator last  = FindObject(to, &lastOffset);
 
    // Common special case: only one object
    wxLOiterator last  = FindObject(to, &lastOffset);
 
    // Common special case: only one object
-   if( *first == *last )
+   if( first != NULLIT && last != NULLIT && *first == *last )
    {
       if( (**first).GetType() == WXLO_TYPE_TEXT )
       {
    {
       if( (**first).GetType() == WXLO_TYPE_TEXT )
       {