Kaydet (Commit) def76a08 authored tarafından heiko tietze's avatar heiko tietze Kaydeden (comit) Heiko Tietze

Resolves tdf#125333 - Crash with FindReplaceRememberedSearches=0

Zero remembered searches crash the app when no result is found
minimum set to 1

Change-Id: Ib2b4b195d018f0f11238699458066f4d128f8997
Reviewed-on: https://gerrit.libreoffice.org/72459
Tested-by: Jenkins
Reviewed-by: 's avatarHeiko Tietze <tietze.heiko@gmail.com>
üst 889a4fed
......@@ -332,6 +332,8 @@ SvxSearchDialog::SvxSearchDialog(weld::Window* pParent, SfxChildWindow* pChildWi
nRememberSize = officecfg::Office::Common::Misc::FindReplaceRememberedSearches::get();
if (nRememberSize<1)
nRememberSize = 1; //0 crashes with no results found
auto nTermWidth = m_xSearchLB->get_approximate_digit_width() * 28;
m_xSearchLB->set_size_request(nTermWidth, -1);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment