summaryrefslogtreecommitdiff
path: root/fpicker
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-07-02 11:09:22 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-07-02 11:57:08 +0100
commit5983675eccd9517915d8f5558c25f47c952edb24 (patch)
treea01519eb14e8a4c4ed7d9e855f7b4581cda1c153 /fpicker
parent64b1566e55677217c9c0dd13e5fbf8faf40810f9 (diff)
fix crash when m_aType is '*'
Change-Id: If2c4ca98814a58b785cd2670eac1e522e70464fd
Diffstat (limited to 'fpicker')
-rw-r--r--fpicker/source/office/iodlgimp.hxx2
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(); }
};