Fixed crash under Solaris if no printer is defined.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8867 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
2d52aebc6d
commit
0c0305865a
@ -574,11 +574,11 @@ void print_update_status() {
|
||||
char name[1024];
|
||||
int val;
|
||||
|
||||
snprintf(name, sizeof(name), "%s/page_size", printer);
|
||||
snprintf(name, sizeof(name), "%s/page_size", printer == NULL ? "" : printer);
|
||||
print_prefs.get(name, val, 1);
|
||||
print_page_size->value(val);
|
||||
|
||||
snprintf(name, sizeof(name), "%s/output_mode", printer);
|
||||
snprintf(name, sizeof(name), "%s/output_mode", printer == NULL ? "" : printer);
|
||||
print_prefs.get(name, val, 0);
|
||||
print_output_mode[val]->setonly();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user