Fix BPrintJob to not screw up user-made job settings with the global defaults.... StyledEdit prints again :)

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23506 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ithamar R. Adema 2008-01-13 23:47:35 +00:00
parent 269fdeefff
commit e7fe0f67d1

View File

@ -797,9 +797,11 @@ BPrintJob::_LoadDefaultSettings()
BMessage *reply = new BMessage;
printServer.SendMessage(&message, reply);
_HandlePrintSetup(reply);
// Only override our settings if we don't have any settings yet
if (fSetupMessage == NULL)
_HandlePrintSetup(reply);
delete fDefaultSetupMessage;
fDefaultSetupMessage = reply;
}