diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-07-02 11:09:22 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-07-02 11:57:08 +0100 |
commit | 5983675eccd9517915d8f5558c25f47c952edb24 (patch) | |
tree | a01519eb14e8a4c4ed7d9e855f7b4581cda1c153 | |
parent | 64b1566e55677217c9c0dd13e5fbf8faf40810f9 (diff) |
fix crash when m_aType is '*'
Change-Id: If2c4ca98814a58b785cd2670eac1e522e70464fd
-rw-r--r-- | fpicker/source/office/iodlgimp.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fpicker/source/office/iodlgimp.hxx b/fpicker/source/office/iodlgimp.hxx index 9b5d5e29ca10..9461af970e8e 100644 --- a/fpicker/source/office/iodlgimp.hxx +++ b/fpicker/source/office/iodlgimp.hxx @@ -57,7 +57,7 @@ public: const OUString& GetName() const { return m_aName; } 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(); } }; |