https://bugs.freedesktop.org/show_bug.cgi?id=75452

          Priority: medium
            Bug ID: 75452
          Assignee: libreoffice-bugs@lists.freedesktop.org
           Summary: regresion in calc 4.2.1 window frame controller
                    doesnot update properly the changes made to the
                    document model
          Severity: major
    Classification: Unclassified
                OS: Linux (All)
          Reporter: todorta...@gmail.com
          Hardware: x86-64 (AMD64)
            Status: NEW
           Version: 4.2.1.1 rc
         Component: Spreadsheet
           Product: LibreOffice

Created attachment 94666
  --> https://bugs.freedesktop.org/attachment.cgi?id=94666&action=edit
Snapshot1 is the situation before running thr copy/paste macro. Snapshot2 is
after the macro is run.

The machine here is running Linux 3.10.17, Slackware 14.1, fairly up to date,
KDE  4.12.2, LibreOffice_4.2.1.1_Linux_x86-64, downloaded from the official
LibreOffice site - no changes whatsoever.


I have one simple .ods file, that has 2 sheets - Sheet1 and Sheet2.
Sheet1 has a very long (~5000) list of rows (5 and more colums wide) . It is
opened in one calc window.
Sheet2 is almost emty - 3 rows, containing the column headers only. And is
opened in another calc window.

In a macro, I pick up a row from Sheet1 and copy/paste it in Sheet2 in the
first available empty row. 
And  in order to see the last 3 pasted rows in Sheet2(Second Window) the
macro has a command:

oFrame.Controller.setFirstVisibleRow(numrow), 
Where numrow is about 3 rows up from where I pasted the last row.

This command acts on the Second open window and it's controller, containing
Sheet2.
Up untill version 4.1.4 of LibreOffice this worked flawlessly.
Now in version 4.2.1.1 the Frame Controller scrambles the Second window and
shows arbitrary rows in Sheet2, sometimes each row twice + emty rows in
between them, or even part of the desktop behind the window, which has
nothing to do with the document model. The copy/paste operation is always
correct, but the window frame view does not update correctly. It looks like
arbitrary graphical artefacts.

There is a way to restore the view in the second window, to show the correct
view corresponding to the document model - and this is by moving a little
the vertical scroll slider. Then everything is normal again , untill the
next oFrame.Controller.setFirstVisibleRow(numrow) command.

Has anyone met such behaviour?
And another question - how can I send to the second frame (window) a command
via the dispath DispatchHelper,
to move it's vertical scroll slider by 1 or more units - up or down, doesn't
matter?
I could not find a proper dispatch helper URL parameter for the scrollbar -
there is one called "ScrollBar", but I couldn't find an explanation what it
does, or wether it accepts argument , and if yes - what are they. 


Regards,
toodr

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to