Added precondition in layout control
This commit is contained in:
@@ -39,6 +39,9 @@ feature -- Add control
|
||||
end
|
||||
|
||||
add_control (col: INTEGER; c: WSF_STATELESS_CONTROL)
|
||||
require
|
||||
col >= 1 and col <= controls.count
|
||||
attached {WSF_STATELESS_MULTI_CONTROL [WSF_STATELESS_CONTROL]} controls [col]
|
||||
do
|
||||
if attached {WSF_STATELESS_MULTI_CONTROL [WSF_STATELESS_CONTROL]} controls [col] as div then
|
||||
div.add_control (c)
|
||||
|
||||
Reference in New Issue
Block a user