Opened 14 years ago

Closed 14 years ago

#2308 closed bug (fixed)

Field Calculator Order of Operations

Reported by: jpalmer Owned by: mhugent
Priority: critical: causes crash or data corruption Milestone: Version 1.4.0
Component: Vectors Version: Trunk
Keywords: Cc:
Must Fix for Release: Yes Platform: Debian
Platform Version: WinXP SP2 Awaiting user input: no

Description

The order of operations in the field calculator is wrong and does not follow the general precedence rule, that division and multiplication come before addition and subtraction.

i.e try 1+2*3.

QGIS produces 9!

Change History (1)

comment:1 by wonder, 14 years ago

Resolution: fixed
Status: newclosed

Fixed in r12578

Note: See TracTickets for help on using tickets.