summaryrefslogtreecommitdiffstats
path: root/src/Authoring/Client/Code/Core/Doc/DocumentBufferCache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Authoring/Client/Code/Core/Doc/DocumentBufferCache.cpp')
-rw-r--r--src/Authoring/Client/Code/Core/Doc/DocumentBufferCache.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/Authoring/Client/Code/Core/Doc/DocumentBufferCache.cpp b/src/Authoring/Client/Code/Core/Doc/DocumentBufferCache.cpp
index 82f8428e..e64a3a6f 100644
--- a/src/Authoring/Client/Code/Core/Doc/DocumentBufferCache.cpp
+++ b/src/Authoring/Client/Code/Core/Doc/DocumentBufferCache.cpp
@@ -246,10 +246,8 @@ struct SDocBufferCache : public IDocumentBufferCache
return entry->second.m_ImageBuffer;
CFilePath thePath(m_Doc.GetResolvedPathToDoc(inPath));
SImageTextureData retval;
- if (thePath.IsFile() && GetBufferManager()) {
- retval = GetBufferManager()->LoadRenderImage(
- GetBufferManager()->GetStringTable().RegisterStr(thePath.toCString()));
- }
+ if (thePath.IsFile() && GetBufferManager())
+ retval = GetBufferManager()->LoadRenderImage(thePath.toQString());
if (retval.m_Texture)
m_Buffers.insert(
make_pair(m_StringTablePtr->RegisterStr(inPath.toCString()), SModelBufferOrImage(retval)));