https://bugs.documentfoundation.org/show_bug.cgi?id=162279

Julien Nabet <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected],
                   |                            |[email protected]

--- Comment #5 from Julien Nabet <[email protected]> ---
On pc Debian x86-64 with master sources updated today, I could reproduce this.

bt part:
#0  svxform::FormController::confirmDelete(com::sun::star::sdb::RowChangeEvent
const&) (this=0x56172af2bda0, aEvent=...) at
svx/source/form/formcontroller.cxx:3927
#1  0x00007f7b3d0839b7 in FmGridControl::DeleteSelectedRows()
(this=0x56172c843190) at svx/source/fmcomp/fmgridcl.cxx:1197
#2  0x00007f7b3d1865b8 in DbGridControl::OnDelete(void*) (this=0x56172c843190)
at svx/source/fmcomp/gridctrl.cxx:2644

Regression from 176e8cf09a527438ec9b2b20ba2df23fa45226bc
Use exception ctors, instead of setting members later

Avoids overwriting source location in message

(12/10/2023).

Reverting partly the patch with:
diff --git a/svx/source/form/formcontroller.cxx
b/svx/source/form/formcontroller.cxx
index fa45f354ed12..2e8340dfdd46 100644
--- a/svx/source/form/formcontroller.cxx
+++ b/svx/source/form/formcontroller.cxx
@@ -3923,8 +3923,11 @@ sal_Bool SAL_CALL FormController::confirmDelete(const
RowChangeEvent& aEvent)
         rtl::Reference<OInteractionDisapprove> pDisapprove = new
OInteractionDisapprove;

         // the request
-        SQLWarning aDetails(SvxResId(RID_STR_DELETECONFIRM), {}, {}, 0, {});
-        SQLWarning aWarning(sTitle, {}, {}, 0, css::uno::Any(aDetails));
+        SQLWarning aWarning;
+        aWarning.Message = sTitle;
+        SQLWarning aDetails;
+        aDetails.Message = SvxResId(RID_STR_DELETECONFIRM);
+        aWarning.NextException <<= aDetails;

         rtl::Reference<OInteractionRequest> pRequest = new
OInteractionRequest( Any( aWarning ) );

seems to fix this.

Mike: thought you might be interested in this one.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to