Problem: 1318654
Title: (Printing) TPrintHandler::SetOwner
Received: Jan 25 1996 2:03PM
My question to you is, do these two fields really need to be the same? If so, why? Why not get rid of one of them?
In TPrintHandler::SetOwner, it must be bogus for it to generate an error message if fOwner != fView because...
In TStdPrintHandler::IStdPrintHandler it calls IPrintHandler which sets fView to itsView, and then down a little bit this happens:
if (itsDocument) itsDocument->AttachPrintHandler(this);Which eventually calls TEventHandler::AddBehavior, which has this line:
theBehavior->SetOwner(this);hence normal use of TStdPrintHandler::IStdPrintHandler will result in fOwner !=fView...
This is a scripting bug. The code in question was added/modified to support scripting and needs to be evaluated in that light.