From 52b877461dfb47e091a98653e24be2145cf12117 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Mon, 1 Sep 2008 14:43:25 +0000 Subject: [PATCH] Apply the same logic of r24682 to the drawing of BPictures inside BPictures. Fixes part of bug #1389 (drawing pictures at an offset). Thanks to Karsten for his observations! git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27267 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/ServerPicture.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/servers/app/ServerPicture.cpp b/src/servers/app/ServerPicture.cpp index 7c73a6bfbe..55796ed093 100644 --- a/src/servers/app/ServerPicture.cpp +++ b/src/servers/app/ServerPicture.cpp @@ -449,8 +449,10 @@ draw_picture(View *view, BPoint where, int32 token) { ServerPicture *picture = view->Window()->ServerWindow()->App()->FindPicture(token); if (picture != NULL) { - view->CurrentState()->SetOrigin(where); + view->SetDrawingOrigin(where); + view->PushState(); picture->Play(view); + view->PopState(); } }