Re: Kubuntu 9:04 - Jaunty, grid editor Ctrl-c Segmentation fault (core dumped)

Поиск
Список
Период
Сортировка
Искать
От
Dave Page
Тема
Re: Kubuntu 9:04 - Jaunty, grid editor Ctrl-c Segmentation fault (core dumped)
Дата
Msg-id
937d27e10907270912t544b0dd3l92c13d6366f5fd29@mail.gmail.com
Ответ на
Список
Дерево обсуждения
Kubuntu 9:04 - Jaunty, grid editor Ctrl-c Segmentation fault (core dumped) Vladimir Kokovic'<vladimir.kokovic@a-asoft.com>
Re: Kubuntu 9:04 - Jaunty, grid editor Ctrl-c Segmentation fault (core dumped) Dave Page <dpage@pgadmin.org>
On Sun, Jul 26, 2009 at 10:58 PM, Vladimir
Kokovic' wrote:
> Hi,
>
> After the changed grid editor, now in Kubuntu 9:04 - Jaunty,
> pgadmin3 on any table in the Data View when trying to copy contents of grid
> cell with Ctrl-C make core dump.

OK, tracked it down eventually. The following patch (which I'll commit
in a minute) should solve it:

Index: pgadmin/frm/frmEditGrid.cpp
===================================================================
--- pgadmin/frm/frmEditGrid.cpp (revision 7984)
+++ pgadmin/frm/frmEditGrid.cpp (working copy)
@@ -1487,6 +1487,7 @@    void Create(wxWindow* parent, wxWindowID id, wxEvtHandler* evtHandler);    void BeginEdit(int row, int col, wxGrid* grid);    bool EndEdit(int row, int col, wxGrid* grid);
+    wxString GetValue() const;
protected:    void DoBeginEdit(const wxString& startValue);
@@ -1541,6 +1542,10 @@    return changed;}

+wxString sqlGridTextEditor::GetValue() const
+{
+    return Text()->GetText();
+}
class sqlGridNumericEditor : public wxGridCellTextEditor{

Note that it only affects HEAD, not 1.10.x.

Thanks for the report!

-- 
Dave Page
EnterpriseDB UK:   http://www.enterprisedb.com

В списке pgadmin-support по дате отправления
От: Vladimir Kokovic'
Дата:
От: Vladimir Kokovic'
Дата:
FAQ