You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2017/11/24 21:28:16 UTC

[Issue 127604] New: Basic command thiscomponent.currentselection(0).name returns wrong name of grouped Draw objects

https://bz.apache.org/ooo/show_bug.cgi?id=127604

          Issue ID: 127604
        Issue Type: DEFECT
           Summary: Basic command thiscomponent.currentselection(0).name
                    returns wrong name of grouped Draw objects
           Product: App Dev
           Version: 4.1.2
          Hardware: Other
                OS: Linux, all
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P5 (lowest)
         Component: scripting
          Assignee: issues@openoffice.apache.org
          Reporter: struckkai@gmx.net
  Target Milestone: ---

Created attachment 86267
  --> https://bz.apache.org/ooo/attachment.cgi?id=86267&action=edit
Names_of_grouped_Draw_objects2.odt

Note: This Bug is fixed in LibreOffice 5.4.4
Here is the LibreOffice BugReport:
https://bugs.documentfoundation.org/show_bug.cgi?id=113615

Description:
the BASIC command thiscomponent.currentselection(0).name returns the wrong name
of grouped Draw Objects.
In Writer: If multiple Draw objects are grouped and this grouped object is
given a name (e.g. "linegroup") the above command should return this grouped
object name but it returns the name of one of the elements instead e.g "line1".
This error occurs in all tested OpenOffice-Versions on most Linux systems like
Linux Mint, Ubuntu. Both 64bit and 32bit versions. It works correctly on
Lubuntu, Windows,OSX. 

Steps to Reproduce:
1. create 2 draw lines and give each a name. eg."line1" and "line2"
2. group the 2 lines
3. give the grouped object a name e.g. "linegroup"
4. select the object and run the basic program:
sub showname
msgbox thiscomponent.currentselection(0).name
end sub

It should show the name of the grouped object: "linegroup"
5. insert and delete texts. Save, try again.
At some point the error will occur and it will show the name of one of the
elements e.g. "line2" instead of the grouped object ("linegroup")

Because it may not appear immediately try it with the attached files:
File2: Names_of_grouped_Draw_objects2.odt

Actual Results:  
At some point the error will occur and it will show the name of one of the
elements e.g. "line2" instead of the grouped object ("linegroup")

Expected Results:
It always should show the name of the grouped object ("linegroup")


Reproducible: Always

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 127604] Basic command thiscomponent.currentselection(0).name returns wrong name of grouped Draw objects

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=127604

--- Comment #6 from Kai Struck <st...@gmx.net> ---
Yes, sounds weird but is a bug.
The LibreOffice Bug Report can help finding out what's wrong
https://bugs.documentfoundation.org/show_bug.cgi?id=113615

It was supposed to be related to gtk3 as it generally appears when running OO
or LO with a gtk3-gui but:
Cited from above link:
Caolán McNamara wrote
"I think this isn't gtk3 specific, but an underlying bug which is easier to run
into with gtk3"
and provided the patch that solves the problem in LO.

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 127604] Basic command thiscomponent.currentselection(0).name returns wrong name of grouped Draw objects

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=127604

Kai Struck <st...@gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |struckkai@gmx.net

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 127604] Basic command thiscomponent.currentselection(0).name returns wrong name of grouped Draw objects

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=127604

--- Comment #2 from Kai Struck <st...@gmx.net> ---
Thank you for testing.
It works ok on Windows,OSX and Lubuntu.
The Bug is OS-and GUI-dependent and shows on Ubuntu and Linux Mint.

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 127604] Basic command thiscomponent.currentselection(0).name returns wrong name of grouped Draw objects

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=127604

--- Comment #9 from Marcus <ma...@apache.org> ---
The problem is not the patch but the incompatible license. LibreOffice (GPL v3)
can include patches from OpenOffice (AL v2) but not the other way around.
Therefore the question to ask the LO developer for license agreement.

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 127604] Basic command thiscomponent.currentselection(0).name returns wrong name of grouped Draw objects

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=127604

Patricia Shanahan <pa...@acm.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pats@acm.org

--- Comment #10 from Patricia Shanahan <pa...@acm.org> ---
Is there any way to delete the comments containing links to LO web pages and
comments about them?

Although I have not followed any of the links, I have no way of proving that
and may be influenced by the comments about them. As a result, I do not feel
comfortable working on this bug. If the risky comments were deleted, future
developers who have not seen them may be able to fix it.

Of course, there is no problem if LibreOffice and/or the originating developer
grant their patch to ASF under the AVL2 license.

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 127604] Basic command thiscomponent.currentselection(0).name returns wrong name of grouped Draw objects

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=127604

--- Comment #7 from oooforum (fr) <oo...@free.fr> ---
Well, maybe contact the LibO dev and ask him to set his patch for AOO.

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 127604] Basic command thiscomponent.currentselection(0).name returns wrong name of grouped Draw objects

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=127604

--- Comment #4 from Kai Struck <st...@gmx.net> ---
Linux Mint 18 Mate 64bit
Ubuntu 17.10 64bit

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 127604] Basic command thiscomponent.currentselection(0).name returns wrong name of grouped Draw objects

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=127604

--- Comment #3 from oooforum (fr) <oo...@free.fr> ---
(In reply to Kai Struck from comment #2)
> The Bug is OS-and GUI-dependent and shows on Ubuntu and Linux Mint.
Could you be more precise and give exact OS version for these distros?

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 127604] Basic command thiscomponent.currentselection(0).name returns wrong name of grouped Draw objects

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=127604

--- Comment #8 from Kai Struck <st...@gmx.net> ---
I'm really trying to provide as much information as possible to get the bug
solved for OO.
This is the LO-patch:
http://cgit.freedesktop.org/libreoffice/core/commit/?id=74030e2aebb68218d829724329744e6992d6543b

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 127604] Basic command thiscomponent.currentselection(0).name returns wrong name of grouped Draw objects

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=127604

oooforum (fr) <oo...@free.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |oooforum@free.fr

--- Comment #1 from oooforum (fr) <oo...@free.fr> ---
Created attachment 86268
  --> https://bz.apache.org/ooo/attachment.cgi?id=86268&action=edit
Screenshot to show result

Not reproduce with AOO 4.1.4 (fr) and Windows 7 x64 Pro
After lines selection, I click on "show name" button.
Then, msgbox displays "linegroup2" (see attached screenshot).

-- 
You are receiving this mail because:
You are the assignee for the issue.

[Issue 127604] Basic command thiscomponent.currentselection(0).name returns wrong name of grouped Draw objects

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=127604

--- Comment #5 from oooforum (fr) <oo...@free.fr> ---
(In reply to Kai Struck from comment #2)
> It works ok on Windows,OSX and Lubuntu.
> The Bug is OS-and GUI-dependent and shows on Ubuntu and Linux Mint.
So weird because Lubuntu, Ubuntu and Mint use same .DEB

-- 
You are receiving this mail because:
You are the assignee for the issue.