[Libreoffice-bugs] [Bug 111818] assertion in SvxSearchItem::GetRegExp() const, srchitem.hxx: 244
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Wed Aug 16 08:48:01 UTC 2017
https://bugs.documentfoundation.org/show_bug.cgi?id=111818
--- Comment #6 from Julien Nabet <serval2412 at yahoo.fr> ---
I think the pb is in impl_executeSearch more precisely here:
114 css::uno::Sequence< css::beans::PropertyValue > lArgs(7);
115 lArgs[0].Name = "SearchItem.SearchString";
116 lArgs[0].Value <<= sFindText;
117 lArgs[1].Name = "SearchItem.Backward";
118 lArgs[1].Value <<= aSearchBackwards;
119 lArgs[2].Name = "SearchItem.SearchFlags";
120 lArgs[2].Value <<= (sal_Int32)0;
121 lArgs[3].Name = "SearchItem.TransliterateFlags";
122 SvtCTLOptions aCTLOptions;
123 TransliterationFlags nFlags = TransliterationFlags::NONE;
124 if (!aMatchCase)
125 nFlags |= TransliterationFlags::IGNORE_CASE;
126 if (aCTLOptions.IsCTLFontEnabled())
127 nFlags |= TransliterationFlags::IGNORE_DIACRITICS_CTL;
128 if (aCTLOptions.IsCTLFontEnabled())
129 nFlags |= TransliterationFlags::IGNORE_KASHIDA_CTL;
130 lArgs[3].Value <<= (sal_Int32)nFlags;
131 lArgs[4].Name = "SearchItem.Command";
132 lArgs[4].Value <<= (sal_Int16)(aFindAll ?
133 SvxSearchCmd::FIND_ALL : SvxSearchCmd::FIND );
134 lArgs[5].Name = "SearchItem.AlgorithmType";
135 lArgs[5].Value <<= (sal_Int16)0; // 0 == SearchAlgorithms_ABSOLUTE
136 lArgs[6].Name = "SearchItem.SearchFormatted";
137 lArgs[6].Value <<= bSearchFormatted;
138
139 css::uno::Reference< css::frame::XDispatchProvider >
xDispatchProvider(xFrame, css::uno::UNO_QUERY);
(see
https://opengrok.libreoffice.org/xref/core/svx/source/tbxctrls/tbunosearchcontrollers.cxx#135)
I suppose we should add the arg "SearchItem.AlgorithmType2" with ABSOLUTE too,
unless we should synchronize with options set before?
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20170816/0a2e4b35/attachment.html>
More information about the Libreoffice-bugs
mailing list