From 562c970d8fabaefa7a8a84287df65d351f82155b Mon Sep 17 00:00:00 2001 From: "Oleg.Korshul" Date: Tue, 28 Apr 2015 15:26:11 +0000 Subject: [PATCH] =?UTF-8?q?=D0=BE=D1=82=D1=80=D0=B8=D1=81=D0=BE=D0=B2?= =?UTF-8?q?=D0=BA=D0=B0=20=D0=B1=D0=B5=D0=B7=20=D0=BA=D0=B0=D1=80=D1=82?= =?UTF-8?q?=D0=B8=D0=BD=D0=BE=D1=87=D0=BD=D0=BE=D0=B3=D0=BE=20=D0=BA=D1=8D?= =?UTF-8?q?=D1=88=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@62343 954022d7-b5bf-4e40-9824-e11837661b57 --- DesktopEditor/graphics/GraphicsRenderer.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/DesktopEditor/graphics/GraphicsRenderer.cpp b/DesktopEditor/graphics/GraphicsRenderer.cpp index 4e0b607852..2383135c1c 100644 --- a/DesktopEditor/graphics/GraphicsRenderer.cpp +++ b/DesktopEditor/graphics/GraphicsRenderer.cpp @@ -958,10 +958,14 @@ HRESULT CGraphicsRenderer::DrawImage(IGrObject* pImage, const double& x, const d HRESULT CGraphicsRenderer::DrawImageFromFile(const std::wstring& bstrVal, const double& x, const double& y, const double& w, const double& h, const BYTE& lAlpha) { CCacheImage* pCacheImage = NULL; - if (NULL != m_pCache) + if (NULL != m_pCache) { pCacheImage = m_pCache->Lock(bstrVal); } + else + { + pCacheImage = new CCacheImage(bstrVal); + } if (NULL != pCacheImage) {