[Libreoffice-bugs] [Bug 127548] Assertion when creating table in Design

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sun Sep 15 14:46:08 UTC 2019


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

--- Comment #5 from Julien Nabet <serval2412 at yahoo.fr> ---
Created attachment 154173
  --> https://bugs.documentfoundation.org/attachment.cgi?id=154173&action=edit
bt2 with patch

With this patch, I don't reproduce the assertion:
diff --git a/dbaccess/source/ui/control/FieldDescControl.cxx
b/dbaccess/source/ui/control/FieldDescControl.cxx
index e04ac5500a08..5c12e4ed0a42 100644
--- a/dbaccess/source/ui/control/FieldDescControl.cxx
+++ b/dbaccess/source/ui/control/FieldDescControl.cxx
@@ -421,7 +421,7 @@ void OFieldDescControl::ActivateAggregate( EControlType
eType )
         m_xDefaultText = m_xBuilder->weld_label("DefaultValueText");
         m_xDefaultText->show();
         m_xDefault = std::make_unique<OPropEditCtrl>(
-                m_xBuilder->weld_spin_button("DefaultValue"),
STR_HELP_DEFAULT_VALUE, FIELD_PROPERTY_DEFAULT);
+                m_xBuilder->weld_entry("DefaultValue"),
STR_HELP_DEFAULT_VALUE, FIELD_PROPERTY_DEFAULT);
         InitializeControl(m_xDefault->GetWidget(),HID_TAB_ENT_DEFAULT);
         m_xDefault->show();
         break;
@@ -581,7 +581,7 @@ void OFieldDescControl::ActivateAggregate( EControlType
eType )
             m_xFormatText->show();

             m_xFormatSample = std::make_unique<OPropEditCtrl>(
-                    m_xBuilder->weld_spin_button("FormatText"),
STR_HELP_FORMAT_CODE, -1);
+                    m_xBuilder->weld_entry("FormatText"),
STR_HELP_FORMAT_CODE, -1);
             m_xFormatSample->set_editable(false);
             m_xFormatSample->set_sensitive(false);
            
InitializeControl(m_xFormatSample->GetWidget(),HID_TAB_ENT_FORMAT_SAMPLE);

but got an segfault (bt attached)

-- 
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/20190915/104adf13/attachment.html>


More information about the Libreoffice-bugs mailing list