Modified to use coordinates of recompute_layout 25/138625/1
authorInHong Han <inhong1.han@samsung.com>
Thu, 13 Jul 2017 04:55:15 +0000 (13:55 +0900)
committerInHong Han <inhong1.han@samsung.com>
Thu, 13 Jul 2017 04:55:58 +0000 (13:55 +0900)
Change-Id: Ie4daec2c308014c411a8b17c1fda5a3288b84f28

scl/sclresourcecache.cpp

index fbc3a8e..561f341 100644 (file)
@@ -1769,8 +1769,7 @@ sclboolean CSCLResourceCache::get_button_geometry(const sclchar* custom_id, SclR
         }
         if (scl_check_arrindex_unsigned(layout_index, MAX_SCL_LAYOUT)) {
             for (loop = 0;loop < MAX_KEY;loop++) {
-                SclLayoutKeyCoordinatePointer p =
-                    sclres_layout_key_coordinate_pointer_frame[layout_index][loop];
+                SclLayoutKeyCoordinatePointer p = &mCurBaseLayoutKeyCoordinates[loop];
                 if (!p || !(p->valid)) break;
                 if (p->custom_id) {
                     if (strcmp(p->custom_id, custom_id) == 0) {