Apache OpenOffice (AOO) Bugzilla – Issue 92211
[Writer/HTML] Error message "cannot display HTML source" when trying to view the source on a new HTML document
Last modified: 2013-08-07 14:43:03 UTC
To reproduce: Create a new Writer/HTML document enter some text save the document switch to HTML source view "View - HTML-Source" an errormessage appears "Cannot display HTML source!" Workaround: close the document and re-open it. HTML source view works fine then This was OK in DEV300_m18, so it's a regression.
MRU->AMA: you have to exactly follow the steps: - new HTML document - enter some text - save HTML document - now switch to HTML source view -> mentioned eror Was good at least in 2.4.1. And as Simon said also in older DEV300 builds.
ama->os: Please have a look...
Broken at least since DEV300 m22 SourceView code is in sw/source/ui/uiview/srcview.cxx, SwSrcView::Load() Additional problem: - switch to sourceview - change something - switch back to normal view - change something and save -> Write Error. File could not be written. - save again -> o.k.
The problem was that internal C++ method SfxObjectShell::DoSave() was used to store the document while switching. This method works only in some cases and should be used only internally by sfx2 ( should not be exported in future probably ). The scenario worked by luck before. Fixed.
mav->mru: Please verify the issue.
Verified fix in CWS mav35.
Checked in OOO300m2.