1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-02 06:03:50 +00:00
freebsd-ports/graphics/gsculpt/files/patch-src::ObjEdit::ObjectCollection.cpp
Maho Nakata c2d82a9ad6 Fix build on gcc-3.3.x
Submitted by:   Simon Barner <barner@in.tum.de>
2003-08-02 02:36:11 +00:00

20 lines
492 B
C++

--- ./src/ObjEdit/ObjectCollection.cpp.orig Mon Jul 21 18:47:55 2003
+++ ./src/ObjEdit/ObjectCollection.cpp Mon Jul 21 19:44:26 2003
@@ -326,11 +326,14 @@
UniqueId ObjectCollection::getUniqueId(const string& name) const
{
IdTable::const_iterator iter = nameToId.find(name);
- if ( iter != objects.end() )
+
+ //if (iter != objects.end() )
+ // Is this correct? 21.7.03, barner@in.tum.de
+ if (iter != nameToId.end())
{
return (*iter).second;
}
- else
+ else
{
return -1;
}