Kaydet (Commit) 5983675e authored tarafından Caolán McNamara's avatar Caolán McNamara

fix crash when m_aType is '*'

Change-Id: If2c4ca98814a58b785cd2670eac1e522e70464fd
üst 64b1566e
...@@ -57,7 +57,7 @@ public: ...@@ -57,7 +57,7 @@ public:
const OUString& GetName() const { return m_aName; } const OUString& GetName() const { return m_aName; }
const OUString& GetType() const { return m_aType; } const OUString& GetType() const { return m_aType; }
const OUString GetExtension() const { return m_aType.copy( 2 ); } const OUString GetExtension() const { return m_aType.getLength() > 2 ? m_aType.copy( 2 ) : OUString(); }
bool isGroupSeparator() const { return m_aType.isEmpty(); } bool isGroupSeparator() const { return m_aType.isEmpty(); }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment