minor bug fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2479 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1248,7 +1248,7 @@ wxLayoutLine::Copy(wxLayoutList *llist,
|
|||||||
wxLOiterator last = FindObject(to, &lastOffset);
|
wxLOiterator last = FindObject(to, &lastOffset);
|
||||||
|
|
||||||
// Common special case: only one object
|
// 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 )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user