1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-02-23 18:45:56 +01:00

misc. fixes

This commit is contained in:
kojima
2001-01-26 19:30:53 +00:00
parent ff5afa20f2
commit 2cf8c125a5
2 changed files with 6 additions and 2 deletions

View File

@@ -762,8 +762,12 @@ void WMEditTableViewRow(WMTableView *table, int row)
if (table->editingRow >= 0) { if (table->editingRow >= 0) {
stopRowEdit(table, table->editingRow); stopRowEdit(table, table->editingRow);
} }
table->editingRow = row; table->editingRow = row;
if (row < 0)
return;
for (i = 0; i < WMGetArrayItemCount(table->columns); i++) { for (i = 0; i < WMGetArrayItemCount(table->columns); i++) {
column = WMGetFromArray(table->columns, i); column = WMGetFromArray(table->columns, i);

View File

@@ -23,7 +23,7 @@ typedef struct W_ProgressIndicator {
#define DEFAULT_PROGRESS_INDICATOR_HEIGHT 16 #define DEFAULT_PROGRESS_INDICATOR_HEIGHT 16
/* define if only the ticks within the progress region should be displayed */ /* define if only the ticks within the progress region should be displayed */
#define SHOW_PROGRESS_TICKS_ONLY #undef SHOW_PROGRESS_TICKS_ONLY
static void didResizeProgressIndicator(); static void didResizeProgressIndicator();