| Ticket Hash: | fa7a523d5f5ffa69691ddb99139a4b699fd0882d | |||
| Title: | fnct_has_topology faulty #ifdef RTTOPO | |||
| Status: | Fixed | Type: | Code_Defect | |
| Severity: | Minor | Priority: | Immediate | |
| Subsystem: | Resolution: | Fixed | ||
| Last Modified: | 2017-01-26 03:22:02 | |||
| Version Found In: | ||||
| User Comments: | ||||
|
mj10777 added on 2017-01-19 07:28:21:
While testing the Android version
static void
fnct_has_topology (sqlite3_context * context, int argc, sqlite3_value ** argv)
{
/* SQL function:
/ HasTopology()
/
/ return 1 if built including GroundControlPoints support (GGP); otherwise 0
*/
GAIA_UNUSED (); /* LCOV_EXCL_LINE */
#ifdef RTTOPO /* RTTOPO is supported */
sqlite3_result_int (context, 1);
#else
sqlite3_result_int (context, 0);
#endif
}
The cause was a missing 'ENABLE_' in the ifdef.Also the Documentation should be changed to simething in the form of return 1 if built including RTTOPO; otherwise 0as used in 'fnct_has_rttopo', which (for now) does exactly the same as fnct_has_topology. mj10777 added on 2017-01-26 03:22:02: changed in commit from 2017-01-25. | ||||