Fix Clipboard to return 0 when has no items 73/41973/2
authorAgnelo Vaz <agnelo.vaz@samsung.com>
Fri, 19 Jun 2015 10:42:50 +0000 (11:42 +0100)
committerAgnelo Vaz <agnelo.vaz@samsung.com>
Fri, 19 Jun 2015 10:47:43 +0000 (03:47 -0700)
Change-Id: If7ce529fa7dfe3ca0ef71a82a7663bf70dff80f1
Signed-off-by: Agnelo Vaz <agnelo.vaz@samsung.com>
adaptors/x11/clipboard-impl-x.cpp

index fdb3650..eafd12a 100644 (file)
@@ -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() )
   {