Issue 97336

Summary: Calc crashes when rightclick-Default to set the character in Text or Callouts
Product: Calc Reporter: amy2008 <amy2008>
Component: codeAssignee: oc
Status: CLOSED FIXED QA Contact: issues@sc <issues>
Severity: Trivial    
Priority: P2 CC: foral, issues, jbf.faure, ooo.redflag, peter.junge
Version: DEV300m37   
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Issue Depends on:    
Issue Blocks: 84292    

Description amy2008 2008-12-17 05:13:33 UTC
Can reproduce it with DEV300m37 on WinXP and Ubuntu

How to reproduce it 
1 Create a new Calc document
2 Hit 'Show Draw Functions' on Standard bar to show the Drawing bar
3 Choose Text or Callouts on the Drawing bar, drag and draw a Text or Callouts
  in the new Calc file, then enter some characters in the Text or Callouts,
  select all of characters, rightclick - Default

Result
OOo crashes

Expectation
OOo works well

Note
I have paid attention to two points after selecting all of entered characters,
one is Format - Default Formatting, it is inactive;
another is rightclick - Default, it is active
So, I guess that the entered characters hadn't formatted anything, then 
rightclick - Default should be inactive like Format - Default Formatting.

If there is something I haven't depict it clearly, feel free to ask me

Regards
Li meiying
Comment 1 jbf.faure 2010-06-15 06:20:37 UTC
*** Issue 112302 has been marked as a duplicate of this issue. ***
Comment 2 jbf.faure 2010-06-15 06:23:55 UTC
Results of my tests for issue 112302:
I can confirm the crash under Linux/Ubuntu 8.04 with OOo 3.2.1 FR and DEV300_m82
with FR langpack. In fact the crash occurs only if you select the word
immediately after having typed it. 
If you validate your typing by clicking outside the text area next re-enter the
text area, select the word then right click and select defaults formating : no
crash.

Kind regards. JBF
Comment 3 oc 2010-06-15 07:21:13 UTC
Hi Niklas, please have a look
Comment 4 jbf.faure 2010-06-15 08:05:48 UTC
Crash report ID: r8yn58n

Kind regards. JBF
Comment 5 niklas.nebel 2010-06-17 11:30:56 UTC
The crash is in TextProperties::ItemChange, in code changed for impresstables2.
Comment 6 clippka 2010-06-17 15:12:50 UTC
fixed in cws impress192

TextProperties::ItemChange() crashed because GetOutlinerParaObject() returned
null. Since we check for paragraph count > 0 there and also for null on
GetOutlinerParaObject on other places I assume it is safe to check here too
Comment 7 clippka 2010-06-21 11:49:46 UTC
verified in cws, back to qa
Comment 8 wolframgarten 2010-06-22 12:31:23 UTC
Testing this I found i112599. Verified in CWS.
Comment 9 clippka 2010-06-30 10:09:45 UTC
*** Issue 112809 has been marked as a duplicate of this issue. ***