From 8e4b38400a730b8b049d827d6bd0c6b406c70d1b Mon Sep 17 00:00:00 2001 From: Abs62 Date: Mon, 1 Oct 2012 16:43:32 +0400 Subject: [PATCH] Remove redundant spaces while translating clipboard --- scanpopup.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scanpopup.cc b/scanpopup.cc index 26704592..41d70359 100644 --- a/scanpopup.cc +++ b/scanpopup.cc @@ -268,7 +268,7 @@ void ScanPopup::translateWordFromClipboard(QClipboard::Mode m) void ScanPopup::translateWord( QString const & word ) { - QString str = pendingInputWord = gd::toQString( Folding::trimWhitespaceOrPunct( gd::toWString( word ) ) ); + QString str = pendingInputWord = gd::toQString( Folding::trimWhitespaceOrPunct( gd::toWString( word ) ) ).simplified(); if ( !str.size() ) return; // Nothing there