Browse Source

Introjucer: previewing SVG files

tags/2021-05-28
jules 12 years ago
parent
commit
d7da1c1e3e
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      extras/Introjucer/Source/Code Editor/jucer_SourceCodeEditor.h

+ 3
- 1
extras/Introjucer/Source/Code Editor/jucer_SourceCodeEditor.h View File

@@ -103,7 +103,9 @@ public:
return true;
MemoryBlock mb;
if (file.loadFileAsData (mb) && seemsToBeText (static_cast <const char*> (mb.getData()), (int) mb.getSize()))
if (file.loadFileAsData (mb)
&& seemsToBeText (static_cast <const char*> (mb.getData()), (int) mb.getSize())
&& ! file.hasFileExtension ("svg"))
return true;
return false;


Loading…
Cancel
Save