diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2013-10-05 21:24:43 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx.marker.es> | 2013-10-05 21:24:43 +0000 |
| commit | 9d62f4c3bdf4656d4fe7652430230fea32fa5872 (patch) | |
| tree | 960c9b872377a015900ddb2cd2f654ffc8e05e95 /src/ui/widget/unit-menu.cpp | |
| parent | Fix moving handles (diff) | |
| parent | Fix EMF/WMF import scale (Bug #1229120). (diff) | |
| download | inkscape-9d62f4c3bdf4656d4fe7652430230fea32fa5872.tar.gz inkscape-9d62f4c3bdf4656d4fe7652430230fea32fa5872.zip | |
update to trunk
(bzr r11950.1.161)
Diffstat (limited to 'src/ui/widget/unit-menu.cpp')
| -rw-r--r-- | src/ui/widget/unit-menu.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/ui/widget/unit-menu.cpp b/src/ui/widget/unit-menu.cpp index 111226774..684016471 100644 --- a/src/ui/widget/unit-menu.cpp +++ b/src/ui/widget/unit-menu.cpp @@ -33,11 +33,9 @@ bool UnitMenu::setUnitType(UnitType unit_type) { // Expand the unit widget with unit entries from the unit table UnitTable::UnitMap m = unit_table.units(unit_type); - UnitTable::UnitMap::iterator iter = m.begin(); - while(iter != m.end()) { - Glib::ustring text = (*iter).first; - append(text); - ++iter; + + for (UnitTable::UnitMap::iterator i = m.begin(); i != m.end(); ++i) { + append(i->first); } _type = unit_type; set_active_text(unit_table.primary(unit_type)); |
