SetSettings turns over ownership to the BMessage so we null out our field to ensure we do not accidently use it later
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4265 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1119,6 +1119,7 @@ StyledEditWindow::PageSetup(const char *documentname)
|
|||||||
|
|
||||||
if (fPrintSettings != NULL) {
|
if (fPrintSettings != NULL) {
|
||||||
printJob.SetSettings(fPrintSettings);
|
printJob.SetSettings(fPrintSettings);
|
||||||
|
fPrintSettings = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
result = printJob.ConfigPage();
|
result = printJob.ConfigPage();
|
||||||
@@ -1144,6 +1145,7 @@ StyledEditWindow::Print(const char *documentname)
|
|||||||
|
|
||||||
BPrintJob printJob(documentname);
|
BPrintJob printJob(documentname);
|
||||||
printJob.SetSettings(fPrintSettings);
|
printJob.SetSettings(fPrintSettings);
|
||||||
|
fPrintSettings = NULL;
|
||||||
result = printJob.ConfigJob();
|
result = printJob.ConfigJob();
|
||||||
if (result != B_OK) {
|
if (result != B_OK) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user