From: Agnelo Vaz Date: Fri, 19 Jun 2015 10:42:50 +0000 (+0100) Subject: Fix Clipboard to return 0 when has no items X-Git-Tag: dali_1.0.46~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0d86ab81e024190d464f775eeeab4c1096a7ba6b;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git Fix Clipboard to return 0 when has no items Change-Id: If7ce529fa7dfe3ca0ef71a82a7663bf70dff80f1 Signed-off-by: Agnelo Vaz --- diff --git a/adaptors/x11/clipboard-impl-x.cpp b/adaptors/x11/clipboard-impl-x.cpp index fdb3650..eafd12a 100644 --- a/adaptors/x11/clipboard-impl-x.cpp +++ b/adaptors/x11/clipboard-impl-x.cpp @@ -173,7 +173,7 @@ unsigned int Clipboard::NumberOfItems() Ecore_X_Atom xAtomCbhmCountGet = ecore_x_atom_get( CBHM_cCOUNT ); std::string ret( ECore::WindowInterface::GetWindowProperty( xAtomCbhmCountGet, NULL, 0 ) ); - int count = -1; + int count = 0; if ( !ret.empty() ) {