]> git.saurik.com Git - wxWidgets.git/blobdiff - user/wxLayout/wxlparser.cpp
Selection improvement.
[wxWidgets.git] / user / wxLayout / wxlparser.cpp
index 804805cd6002fb2d540f69f65ae7df8ea67ddf77..95268ef08c7dd40a65c92028653db2dc33db7a7e 100644 (file)
@@ -10,7 +10,7 @@
 #   pragma implementation "wxlparser.h"
 #endif
 
-//#include "Mpch.h"
+#include "Mpch.h"
 #ifdef M_PREFIX
 #   include "gui/wxllist.h"
 #   include "gui/wxlparser.h"
@@ -158,12 +158,13 @@ wxLayoutExportStatus::wxLayoutExportStatus(wxLayoutList *list,
    m_fromPos = fromPos;
    m_toPos = toPos;
 
-   if(m_fromPos != wxLayoutExportNoPosition)
+   if(m_fromPos.x != -1)
    {
-      while(m_line && (*m_line)->GetLineNumber() != m_fromPos.y)
-         m_line->GetNextLine();
+      while(m_line && m_line->GetLineNumber() != m_fromPos.y)
+         m_line = m_line->GetNextLine();
       wxASSERT(m_line);
-      m_iterator = (**i).FindObject(fromPos.x);
+      CoordType dummy;
+      m_iterator = m_line->FindObject(fromPos.x, &dummy);
    }
 }