To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=83367
                 Issue #|83367
                 Summary|XTableCharts::addNewByName does not work with empty na
                        |me
               Component|Spreadsheet
                 Version|680m235
                Platform|All
                     URL|
              OS/Version|All
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|programming
             Assigned to|mba
             Reported by|bm





------- Additional comments from [EMAIL PROTECTED] Tue Nov  6 13:48:49 +0000 
2007 -------
The API methods XTableCharts::addNewByName() is implemented such that you can
pass an empty string as first parameter. In this case an auto-generated unique
name is used. This no longer works. There is a change in
sc/source/ui/unoobj/chartuno.cxx:237ff :

>    ::rtl::OUString aTmp( aNameString );
        if ( SvtModuleOptions().IsChart() )
        xObj = pDocShell->GetEmbeddedObjectContainer().CreateEmbeddedObject(
SvGlobalName( SO3_SCH_CLASSID ).GetByteSequence(), aTmp );
    if ( xObj.is() )
        {
        String aObjName = aNameString;       // wirklich eingefuegter Name...
[...]

done with revision 1.11.138.2 that drops the auto-generated name in a stack
variable aTmp, and assigns the empty string as object name ("wirklich
eingefügter Name").

As a result the chart is visible, but not shown in the navigator. And it can not
be saved.

->mba: I am not sure why you did this change. I believe it is wrong like this,
but as it seems to be an explicit change (and no oversight), you might know why
this was done.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to