Re: Kubuntu 9:04 - Jaunty, grid editor Ctrl-c Segmentation fault (core dumped)
- From: Dave Page <dpage(at)pgadmin(dot)org>
- To: "Vladimir Kokovic'" <vladimir(dot)kokovic(at)a-asoft(dot)com>
- Cc: pgadmin-support(at)postgresql(dot)org
- Subject: Re: Kubuntu 9:04 - Jaunty, grid editor Ctrl-c Segmentation fault (core dumped)
- Date: Mon, 27 Jul 2009 17:12:52 +0100
- Message-id: <937d27e10907270912t544b0dd3l92c13d6366f5fd29@mail.gmail.com> <text/plain>
On Sun, Jul 26, 2009 at 10:58 PM, Vladimir
Kokovic'<vladimir(dot)kokovic(at)a-asoft(dot)com> 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
Home |
Main Index |
Thread Index