[Uml-devel] branches/KDE/3.5/kdesdk/umbrello/umbrello
Oliver Kellogg
okellogg at users.sourceforge.net
Sat Aug 13 01:40:04 UTC 2005
SVN commit 448828 by okellogg:
advance(): Add missing break out of loop.
M +6 -1 nativeimportbase.cpp
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/nativeimportbase.cpp #448827:448828
@@ -43,8 +43,11 @@
while (m_srcIndex < m_source.count() - 1) {
if (m_source[++m_srcIndex].startsWith(m_singleLineCommentIntro))
m_comment += m_source[m_srcIndex];
+ else
+ break;
}
- if (m_source[m_srcIndex].startsWith(m_singleLineCommentIntro)) {
+ if (m_srcIndex == m_source.count() - 1 &&
+ m_source[m_srcIndex].startsWith(m_singleLineCommentIntro)) {
// last item in m_source is a comment
return QString::null;
}
@@ -90,6 +93,8 @@
umldoc->writeToStatusBar(i18n("Importing file: %1").arg(fileName));
m_source.clear();
m_srcIndex = 0;
+ m_scope[0] = NULL; // index 0 is reserved for global scope
+ m_scopeIndex = 0;
parseFile(fileName);
}
}
More information about the umbrello-devel
mailing list