http://bugzilla.novell.com/show_bug.cgi?id=523345
User pgajdos@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=523345#c1
Petr Gajdos changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #1 from Petr Gajdos 2009-07-20 07:37:44 MDT ---
Fixed, thanks for reporting.
--- lib/new_fmode.cpp
+++ lib/new_fmode.cpp
@@ -277,10 +277,13 @@
}
void FilterMode::MagicString::remExtension(const String & ext) {
- for ( Vector<String>::iterator it = fileExtensions.begin() ;
- it != fileExtensions.end() ; it++ ) {
+ Vector<String>::iterator it = fileExtensions.begin();
+ while (it != fileExtensions.end()) {
if ( *it == ext ) {
- fileExtensions.erase(it);
+ it = it.erase();
+ }
+ else {
+ it++;
}
}
}
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.