Bug 193080 - cpp import error when class name in multiple namespaces
Summary: cpp import error when class name in multiple namespaces
Status: RESOLVED DUPLICATE of bug 336810
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Unspecified
: NOR normal
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-18 09:24 UTC by Ralf Habacker
Modified: 2014-07-01 21:30 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
first Cpp-Header for import (3.84 KB, text/x-chdr)
2009-05-18 09:26 UTC, Ralf Habacker
Details
second cpp hesder for import (1.06 KB, text/x-chdr)
2009-05-18 09:27 UTC, Ralf Habacker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ralf Habacker 2009-05-18 09:24:54 UTC
Version:            (using Devel)
Installed from:    Compiled sources

Importing the following classes works as excepted. 

namespace Base {

/** 
    holds a single xml element
    A xml element is setup of a tag name, tag attributes and content 
*/
class Element {
...
);
class Assembly : public Base::Element {
    public: 

        Assembly() : Base::Element("assembly")
        {
        }
};

}

In the list view there is a 'Base' package contaning two classes Element and Assembly. Both class are assigned to the Base namespace (verified by opening the class properties, as Package 'Base' is selected)

Importing the following class afterwards or at the same time as the previous classes 

class Assembly : public Base::Assembly {
    public: 

        Assembly()
        {
        }
};

corrupts the class structure.  

A message box complaining that class Assembly is already present raises up and forces the user to enter a new class name (new_class as default taken)

The List view now contains a newly imported class Assembly in the public namespace, which is expected. 

The previously imported class Base::Assembly in the base package is renamed to new_class and is not anymore assigned to the 'Base' package although in the list view it is still named 'Assembly' and located in the Base Package.
Comment 1 Ralf Habacker 2009-05-18 09:26:47 UTC
Created attachment 33791 [details]
first Cpp-Header for import
Comment 2 Ralf Habacker 2009-05-18 09:27:15 UTC
Created attachment 33792 [details]
second cpp hesder for import
Comment 3 Ralf Habacker 2014-07-01 21:30:36 UTC

*** This bug has been marked as a duplicate of bug 336810 ***