gkarsay / parlatype-libreoffice-extension

Parlatype LibreOffice Extension
https://www.parlatype.xyz
GNU General Public License v3.0
8 stars 2 forks source link

crash when selecting a table #4

Closed polirritmico closed 2 years ago

polirritmico commented 2 years ago

Summary:

Writer crash when selecting a table. If the plugin is disabled all work fine.

Steps to reproduce:

Open the attached file and select the table. When the mouse click is release Writer should crash. select_table_crash.odt

System info:

Version: 7.1.5.2 / LibreOffice Community Build ID: 10(Build:2) CPU threads: 8; OS: Linux 5.10; UI render: GL; VCL: kf5 Locale: es-CL (es_CL.UTF-8); UI: es-ES Gentoo official package Calc: threaded

KDE Plasma Version: 5.22.5 KDE Frameworks Version: 5.85.0 Qt Version: 5.15.2 Graphics Platform: X11

gkarsay commented 2 years ago

Thanks for your bug report, I could reproduce it.

LibreOffice 7.0 - Fatal Error: <class 'AttributeError'>: getCount, traceback follows
  File "/usr/lib/libreoffice/share/extensions/parlatype/python/components/Parlatype.py", line 102, in mouseReleased
    self.parent._checkCursorforTimestamp(goto_current_timestamp=True)
  File "/usr/lib/libreoffice/share/extensions/parlatype/python/components/Parlatype.py", line 233, in _checkCursorforTimestamp
    timestamp = pt_utils.extractTimestamp(controller)
  File "/usr/lib/libreoffice/share/extensions/parlatype/python/components/pythonpath/parlatype_utils.py", line 289, in extractTimestamp
    textrange = getTextRange(controller)
  File "/usr/lib/libreoffice/share/extensions/parlatype/python/components/pythonpath/parlatype_utils.py", line 267, in getTextRange
    count = xIndexAccess.getCount()
polirritmico commented 2 years ago

It runs smoothly. Thanks for this great tool!