From 3c898d9d7973b86f2daf5a125feeb4a8425de9d9 Mon Sep 17 00:00:00 2001 From: Przemyslaw Czerpak Date: Tue, 19 Jan 2010 09:20:57 +0000 Subject: [PATCH] 2010-01-19 10:20 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/contrib/hbwin/win_prn1.c ! fixed missing dmFields assignment - please test if this fix does not change the behavior of printer dialog window when :AskProperties is set to .T. - thanks to Chen for information --- harbour/ChangeLog | 6 ++++++ harbour/contrib/hbwin/win_prn1.c | 2 ++ 2 files changed, 8 insertions(+) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 950eeecf6c..d631b112ef 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -17,6 +17,12 @@ past entries belonging to author(s): Viktor Szakats. */ +2010-01-19 10:20 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) + * harbour/contrib/hbwin/win_prn1.c + ! fixed missing dmFields assignment - please test if this fix does + not change the behavior of printer dialog window when :AskProperties + is set to .T. - thanks to Chen for information + 2010-01-19 09:40 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/src/pp/ppcore.c * pacified BCC warning diff --git a/harbour/contrib/hbwin/win_prn1.c b/harbour/contrib/hbwin/win_prn1.c index 0b1c3fde15..59077179e2 100644 --- a/harbour/contrib/hbwin/win_prn1.c +++ b/harbour/contrib/hbwin/win_prn1.c @@ -556,6 +556,8 @@ HB_FUNC( WIN_SETDOCUMENTPROPERTIES ) dmFields |= DM_PAPERLENGTH | DM_PAPERWIDTH; } + pDevMode->dmFields = dmFields; + fMode = DM_IN_BUFFER | DM_OUT_BUFFER; if( fUserDialog ) fMode |= DM_IN_PROMPT;