bug-gnu-pspp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PSPP-BUG: [bug #29659] Clicking on upper-left corner of data sheet cause


From: Michel Boaventura
Subject: PSPP-BUG: [bug #29659] Clicking on upper-left corner of data sheet causes crash
Date: Sat, 08 May 2010 01:31:15 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; pt-BR; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3

Follow-up Comment #1, bug #29659 (project pspp):

I think the problem is that psppire_sheet_select_range
(lib/gtk-contrib/psppire-sheet.c:2710) doesn't support its second argument to
be NULL, since it dereferences this argument.

But, on the same file, line 3027 we have:
psppire_sheet_select_range (sheet, NULL);

This only happens if both row and column are equal -1 which only happens if
you click on the marked area.

Since click on this cell should do nothing, and there is already code to
avoid problems with this click inside the if, I guess the best solution whould
be simple remove line 3027.

The attached patch should do it, and also fix a strange line break on line
3026

(file #20478)
    _______________________________________________________

Additional Item Attachment:

File name: fix_corner_click.patch         Size:0 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?29659>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]