Issue 20965 - Selecting Formulas possible only when clicking exactly on object frame
Summary: Selecting Formulas possible only when clicking exactly on object frame
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: ui (show other issues)
Version: 680m81
Hardware: PC Windows XP
: P3 Trivial (vote)
Target Milestone: ---
Assignee: michael.ruess
QA Contact: issues@sw
URL:
Keywords: oooqa
: 18662 21443 21897 44479 50120 (view as issue list)
Depends on:
Blocks:
 
Reported: 2003-10-09 16:25 UTC by khbellgardt
Modified: 2013-08-07 14:41 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Document showing the formula selection problem (287.91 KB, application/octet-stream)
2003-10-09 16:27 UTC, khbellgardt
no flags Details
Test file incluzding notes without problem created from scratch (21.65 KB, application/octet-stream)
2003-10-15 14:10 UTC, khbellgardt
no flags Details
Document, where I finally also reproduced problem (97.43 KB, application/vnd.sun.xml.writer)
2004-11-30 13:19 UTC, michael.ruess
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description khbellgardt 2003-10-09 16:25:12 UTC
After opening an existing document containing OOoMath formulas, the formulas
cannot be selected by a mouse click inside of the gray border line of the
object, and therefore, they cannot be edited. The text cursor is placed behind
the formula instead. By cliccking around at several places in the document it
happens that the formulas can finally be selected.

When clicking outside of the border line at a place where the mouse cursor is
already an arrow, the formulas can be selected without problem from the beginning.

This behaviour depends somehow on the size of the document and the number of
formulas in it, but it seems also be influenced by the formula code itself.

I have attached a document showing the problem. Some of its formulas were
converted from a Word document with MathType formulas.
Comment 1 khbellgardt 2003-10-09 16:27:16 UTC
Created attachment 10145 [details]
Document showing the formula selection problem
Comment 2 guido.pinkernell 2003-10-14 23:06:50 UTC
I have downloaded your file and tried to open the doc. It did load
very slowly, and after doubleclicking on one formula, OOo crashed. The
is clearly a problem, but before continuing this we need to make sure
hwo the formulas were created.
Please attach a file were you specify for each formula whether it´s
been created using MathType or using OOo´s Math Editor.
Comment 3 khbellgardt 2003-10-15 14:04:58 UTC
On my system OOo did never crash when doubleclicking a formula. 

My original attached attached file (id=10145) was extracted form a
longer document where I had done a lot of editing. Therefor I cannot
tell definitly which formulas are original ones converted from
MathType, which were from MathType but edited in OOoMath and which one
are entered newly by OOoMath. I have made a guess on the following
basis: all converted formulas contain a size command, but newly
entered do not. This guess is noted in the second attached file.

The original file with the selection problem is 287KB. This file was
created in the following way: Import of a Word document with
conversion to OOoMath activated, copied to the clipboard after
Edit->Select all, pasted into a new OOo document created from a
template, then edited and saved as it is.

We had also discussed the problem in the german user group. There
Siegfried Schilling found the following: 

When a new OOo-Document is created with the same content where the
formulas are copied from my first file by CTRL A, then the document is
only 21KB, but shows the same selection problem. I don't know whether
the size difference is caused by the fact that the first document uses
a template but the second does not. When a new document is created
from scratch by entering all formulas from the command window - with
exactly the same formula commands as used in the original document -
it is also 21KB in size but does not show the selection problem. This
file, extended by my notes, is added as new attachment.
Comment 4 khbellgardt 2003-10-15 14:10:28 UTC
Created attachment 10336 [details]
Test file incluzding notes without problem created from scratch
Comment 5 guido.pinkernell 2003-10-15 17:47:13 UTC
Thanks for the new file and added comments. I have some more to add
and will open this as New:

Test2_1.sxw: Opening process in OOo 1.1.0 on Win98 very very slow.
After about 1 or 2 minutes white text area opens, and formulas appear
quickly afterwards. After clicking on each formula the math editor
opens quickly, regardless whether it´s a MathType or OOo generated
formula.

Test.sxw: Other than said in my last comment, this time the file
opens, but takes a long time as well. The white area opens quickly,
however, but the formulas take a long time to open, about one or two
minutes. The cursor blinks, but when trying to open a formula with a
doubleclick, it turns black as if highlighted. Green quadrangles with
indicate the formulas as "objects" don´t appear. Only after one or two
minutes, these quadrangles appear after one click, and doubleclick
opens each formula.

I have the impression that, in both cases, it simply takes time to
have the doc to behave as expected; no need to click on the formulas
to "wake them up". Just wait. I don´t know whether that´s a defect or
simply due to my rather small system slowing down the importing
process. Issue 11756 reports a similar problem but focusses on false
translations from imported equations. Here are no false translation.

Nevertheless, I will change to New, remove crash keyword, and modify
the Summary.
Comment 6 thomas.lange 2003-10-16 08:04:35 UTC
TL: I've checked with SRC680 m7.
There was no slow loading and no crash when activating any of the
formulas.

TL->MRU: Please have a look.
Comment 7 khbellgardt 2003-10-16 08:43:57 UTC
On my system (WinXP, Pentium 4, 2,6GHz) when opening any of the files
the delay till all is on the screen is comparable to other files of
similar size (about 1 sec).

After doubleclicking on a formula in test.sxw the formula is
highlighted  and remains in this state. Even after waiting for 20
minutes the green handles do not appear when clicking on the formula
and it does not open in the command window by double click.
Comment 8 michael.ruess 2003-10-16 10:49:15 UTC
I was also not able to reproduce a crash with any of the attached
documents. But: I noticed a performance problem when opening the first
attachment. This ONLY occuerd on Win95. Thus I created issue 21304
for it (better to handle only ONE problem per issue).

The selection problem is reproducable with the first attachment, of
course. But we think, that it is related to the way the document is
created. I'll try to create another sample by using converted objects
from Word and so on. 
I played around a little bit with the attached sxw and found out, that
all object are correctly selectable, when I switch the anchor for one
of them and re-saved the file.

Karl Heinz, 
which OO version did you use at very first to create the original sxw
(which contained ALL the formulas?
Comment 9 khbellgardt 2003-10-16 12:23:24 UTC
The original full size document was created by OOo 1.1RC3.
Comment 10 khbellgardt 2003-10-16 15:18:38 UTC
I would like to clarify one point regarding the attachment
test2_1.sxw. As I said in my comment from 2003-10-15 06:04, the
document was created by entering all formulas directly from the
command window, but with the same command sequences as in test.sxw. In
test2_1.sxw nothing was copied or imported from other documents. There
is no problem at all with this document on my system.

The document where the formulas of test.sxw were copied by CTRL A was
 only 21kB but showed the same problems as test.sxw. This document is
not added as attachement.
Comment 11 guido.pinkernell 2003-10-20 09:21:58 UTC
Have opened a new Issue which shows a systematic overview on problems
with files discussed here and another file recently discussed on the
German users mailing list:

http://www.openoffice.org/issues/show_bug.cgi?id=21443
Comment 12 jack.warchold 2003-10-20 10:44:08 UTC
*** Issue 21443 has been marked as a duplicate of this issue. ***
Comment 13 guido.pinkernell 2003-10-24 11:03:15 UTC
could be related to Issue 18662
Comment 14 guido.pinkernell 2003-11-18 16:21:46 UTC
*** Issue 18662 has been marked as a duplicate of this issue. ***
Comment 15 jack.warchold 2003-11-27 13:48:04 UTC
*** Issue 21897 has been marked as a duplicate of this issue. ***
Comment 16 ftack 2004-07-14 10:29:49 UTC
Following a post from a user on OOOforum.org, I did a test myself and I can
reproduce this issue. This user observed that equation objects were rendered
'inactive' after creating a PDF from the file. However, I observed that in a doc
that was saved while the equations were 'selectable', but with the cursor near
the end of the document, formula's would be 'unselectable' upon reopening the
document. Their 'activity' can be restored by either
* deleting a paragraph break before or after the equation and re-entering it
* selecting the formula using the Navigator.
Comment 17 khbellgardt 2004-07-20 17:05:33 UTC
The problem seems to be more serious in OOo1.1.2, With this version it happens
very often that formulas become unselectable after a while when editing the
document. 
Comment 18 michael.ruess 2004-11-30 13:19:40 UTC
Created attachment 19910 [details]
Document, where I finally also reproduced problem
Comment 19 michael.ruess 2004-11-30 13:27:39 UTC
MRU->TL: open my additionally attached file and try to select the formula -> it
is only possible when exactly clicking on the object border (after this, it will
work normally until reload)
Comment 20 michael.ruess 2005-03-08 14:35:27 UTC
*** Issue 44479 has been marked as a duplicate of this issue. ***
Comment 21 thomas.lange 2005-03-08 15:04:23 UTC
TL->OS: Please have a look. Thanks!

Target set to OOo 2.0.1.
Comment 22 Oliver Specht 2005-04-04 10:42:56 UTC
->fme: For some reason SwFEShell::ShouldObjectBeSelected()  doesn't want some of
the formulas to be selected. 
Comment 23 frank.meies 2005-04-15 12:19:52 UTC
.
Comment 24 frank.meies 2005-04-26 12:25:30 UTC
Fixed in cws swqbugfixes30

sw/source/core/frmedt/feshview.cxx rev. 1.39.64.1
Comment 25 michael.ruess 2005-05-31 15:34:05 UTC
*** Issue 50120 has been marked as a duplicate of this issue. ***
Comment 26 frank.meies 2005-06-01 09:52:15 UTC
FME: Ready for QA.

re-open issue and reassign to mru@openoffice.org
Comment 27 frank.meies 2005-06-01 09:52:20 UTC
reassign to mru@openoffice.org
Comment 28 frank.meies 2005-06-01 09:52:27 UTC
reset resolution to FIXED
Comment 29 michael.ruess 2005-06-01 15:11:20 UTC
Verified fix in CWS swqbugfixes30.
Comment 30 frank.meies 2005-06-28 15:13:44 UTC
.
Comment 31 frank.meies 2005-06-28 15:14:23 UTC
.
Comment 32 frank.meies 2005-06-28 15:20:09 UTC
.
Comment 33 frank.meies 2005-07-04 07:25:54 UTC
.

re-open issue and reassign to mru@openoffice.org
Comment 34 frank.meies 2005-07-04 07:26:00 UTC
reassign to mru@openoffice.org
Comment 35 frank.meies 2005-07-04 07:26:05 UTC
reset resolution to FIXED
Comment 36 michael.ruess 2005-07-06 13:09:53 UTC
Verified fix in CWS swqbf34.
Comment 37 michael.ruess 2005-07-18 12:52:09 UTC
Checked integration of text in 680m117.