Author:   Lars Michelsen <[email protected]>
Date:     Sat Mar  5 16:02:48 2011 +0100
Committer:   Lars Michelsen <[email protected]>
Commit-Date: Sat Mar  5 16:02:48 2011 +0100

Fixed object_id creation

---

 share/server/core/classes/GlobalMapCfg.php |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/share/server/core/classes/GlobalMapCfg.php 
b/share/server/core/classes/GlobalMapCfg.php
index df90bd2..8daf429 100644
--- a/share/server/core/classes/GlobalMapCfg.php
+++ b/share/server/core/classes/GlobalMapCfg.php
@@ -2149,9 +2149,9 @@ class GlobalMapCfg {
         */
        public function addElement($type, $properties, $perm = false, $id = 
null) {
                if($id === null)
-                       $id = $this->genObjId(count($this->mapConfig));
+                       $id = $this->genObjId(count($this->mapConfig) + 1);
 
-               $this->mapConfig[$id] = $properties;
+               $this->mapConfig[$id]              = $properties;
                $this->mapConfig[$id]['object_id'] = $id;
                $this->mapConfig[$id]['type']      = $type;
                if($perm)


------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to