]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed mysterious mistakes
authorKarsten Ballüder <ballueder@usa.net>
Wed, 12 Aug 1998 08:50:25 +0000 (08:50 +0000)
committerKarsten Ballüder <ballueder@usa.net>
Wed, 12 Aug 1998 08:50:25 +0000 (08:50 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@508 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

user/wxLayout/wxllist.cpp

index f563ce256537d7d260bb3bbe34a7eb447f010891..529807c1c201274a319d683c17687d060c8077f2 100644 (file)
@@ -594,13 +594,13 @@ wxLayoutList::FindObjectCursor(wxPoint *cpos, CoordType *offset)
    if((**i).GetType()==WXLO_TYPE_LINEBREAK)
    {
       if(offset)
    if((**i).GetType()==WXLO_TYPE_LINEBREAK)
    {
       if(offset)
-         *offset = (cpos.x > object.x) : 1 : 0;
+         *offset = (cpos->x > object.x) ? 1 : 0;
       return i;
    }
    cpos->x = object.x; // would be the coordinate of next object
    cpos->y = object.y;
    cpos->x += width; // last object's width
       return i;
    }
    cpos->x = object.x; // would be the coordinate of next object
    cpos->y = object.y;
    cpos->x += width; // last object's width
-   if(*offset)  *offset = cpos->x-object.x
+   if(*offset)  *offset = cpos->x-object.x;
    return i; // not found
 }
 
    return i; // not found
 }