Kaydet (Commit) 3470e360 authored tarafından Julien Nabet's avatar Julien Nabet Kaydeden (comit) Andras Timar

tdf#79741: Macro with Find @ Replace crash Calc

0x00002aaaaf4bd163 in SfxItemSet::GetItemState (this=0x0, nWhich=26182, bSrchInParent=true, ppItem=0x7fffffff1730)
    at /home/julien/compile-libreoffice/libreoffice/svl/source/items/itemset.cxx:422
422	        SfxItemArray ppFnd = pAktSet->m_pItems;
(gdb) bt
0  0x00002aaaaf4bd163 in SfxItemSet::GetItemState(unsigned short, bool, SfxPoolItem const**) const (this=0x0, nWhich=26182, bSrchInParent=true, ppItem=0x7fffffff1730)
    at /home/julien/compile-libreoffice/libreoffice/svl/source/items/itemset.cxx:422
1  0x00002aaaaf4bd306 in SfxItemSet::HasItem(unsigned short, SfxPoolItem const**) const (this=0x0, nWhich=26182, ppItem=0x7fffffff1730)
    at /home/julien/compile-libreoffice/libreoffice/svl/source/items/itemset.cxx:463
2  0x00002aaacd9902c9 in ScCellShell::ExecuteEdit(SfxRequest&) (this=0x312fe10, rReq=...) at /home/julien/compile-libreoffice/libreoffice/sc/source/ui/view/cellsh1.cxx:1032

See https://gerrit.libreoffice.org/#/c/17603/ for details
Thank you Maxim!

Change-Id: Ie4cf31e3764c02f335830c59674a94acd6c209df
Reviewed-on: https://gerrit.libreoffice.org/17603Reviewed-by: 's avatarMaxim Monastirsky <momonasmon@gmail.com>
Tested-by: 's avatarMaxim Monastirsky <momonasmon@gmail.com>
(cherry picked from commit 958ec9cc)
Reviewed-on: https://gerrit.libreoffice.org/17615Reviewed-by: 's avatarEike Rathke <erack@redhat.com>
Tested-by: 's avatarEike Rathke <erack@redhat.com>
üst 9efc1437
...@@ -3280,7 +3280,7 @@ SfxVoidItem SolverDialog SID_OPENDLG_OPTSOLVER ...@@ -3280,7 +3280,7 @@ SfxVoidItem SolverDialog SID_OPENDLG_OPTSOLVER
] ]
SfxVoidItem SearchResultsDialog SID_SEARCH_RESULTS_DIALOG SfxVoidItem SearchResultsDialog SID_SEARCH_RESULTS_DIALOG
() (SfxBoolItem Visible SID_SEARCH_RESULTS_DIALOG)
[ [
/* flags: */ /* flags: */
AutoUpdate = FALSE, AutoUpdate = FALSE,
...@@ -3297,9 +3297,9 @@ SfxVoidItem SearchResultsDialog SID_SEARCH_RESULTS_DIALOG ...@@ -3297,9 +3297,9 @@ SfxVoidItem SearchResultsDialog SID_SEARCH_RESULTS_DIALOG
/* config: */ /* config: */
AccelConfig = TRUE, AccelConfig = TRUE,
MenuConfig = TRUE, MenuConfig = FALSE,
StatusBarConfig = FALSE, StatusBarConfig = FALSE,
ToolBoxConfig = TRUE, ToolBoxConfig = FALSE,
GroupId = GID_OPTIONS; GroupId = GID_OPTIONS;
] ]
......
...@@ -1017,7 +1017,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq ) ...@@ -1017,7 +1017,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
case SID_SEARCH_RESULTS_DIALOG: case SID_SEARCH_RESULTS_DIALOG:
{ {
const SfxPoolItem* pItem = NULL; const SfxPoolItem* pItem = NULL;
if (pReqArgs->HasItem(SID_SEARCH_RESULTS_DIALOG, &pItem)) if (pReqArgs && pReqArgs->HasItem(SID_SEARCH_RESULTS_DIALOG, &pItem))
{ {
bool bVisible = static_cast<const SfxBoolItem*>(pItem)->GetValue(); bool bVisible = static_cast<const SfxBoolItem*>(pItem)->GetValue();
SfxViewFrame* pViewFrm = pTabViewShell->GetViewFrame(); SfxViewFrame* pViewFrm = pTabViewShell->GetViewFrame();
......
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