To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=75298


User bm changed the following:

                What    |Old value                 |New value
================================================================================
             Assigned to|bm                        |nn
--------------------------------------------------------------------------------
                  Status|STARTED                   |NEW
--------------------------------------------------------------------------------




------- Additional comments from [EMAIL PROTECTED] Wed Mar 14 14:58:28 +0000 
2007 -------
The problem also appears in this situation:

1. Create an empty Writer Document
2. Create a Calc document with a Chart
3. Open the Data Source Dialog
4. Switch to the Writer Doc and back to the Calc
5. Press the range chooser button
=> Crash, as the "current view shell" has changed.

In sc/source/ui/view/reffact.cxx:187 the call to SfxViewTabViewShell::Current()
returns 0. The problem here is probably, that Current() tries to return the
SfxViewShell of the chart, as that is active at the moment, which does not work,
as the chart does not implement this class (if it would it would still be the
wrong implementation).

Here is what Current probably returns:

1. Writer
2. Calc
3. Still Calc, as Chart does not implement SfxViewShell, therefore the current
one does not change
4. Writer, switching back tries to get the chart's viewshell which does not
exist, therefore it stays the Writer view-shell or becomes 0.

->NN: Is there a possibility to use a different method than
SfxViewShell::Current()? I also noticed that Sc2ChartDataProvider seems to
return the current XController as range selection. Doesn't the current
controller "know" its view shell?

---------------------------------------------------------------------
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