aw083 #i105548# Added using the VOCRedirector inside pageobject content creation

This commit is contained in:
Armin Le Grand 2010-06-23 12:00:04 +02:00
parent 12f9037a53
commit 3878d8a7a5

View file

@ -273,9 +273,16 @@ namespace sdr
// init extractor, guarantee existance, set page there
mpExtractor->SetStartPage(pPage);
// #i105548# also need to copy the VOCRedirector for sub-content creation
mpExtractor->SetViewObjectContactRedirector(GetObjectContact().GetViewObjectContactRedirector());
// create page content
xPageContent = mpExtractor->createPrimitive2DSequenceForPage(rDisplayInfo);
// #i105548# reset VOCRedirector to not accidentially have a pointer to a
// temporary class, so calls to it are avoided safely
mpExtractor->SetViewObjectContactRedirector(0);
// reset recursion flag
bInCreatePrimitive2D = false;
}