| 245 | | int min_lenght = root->awar(AWAR_PRIMER_DESIGN_LENGTH_MIN)->read_int(); |
| 246 | | int max_lenght = root->awar(AWAR_PRIMER_DESIGN_LENGTH_MAX)->read_int(); |
| 247 | | |
| 248 | | if (max_lenght<1) max_lenght = 1; |
| 249 | | if (min_lenght<1) min_lenght = 1; |
| 250 | | |
| 251 | | if (min_lenght >= max_lenght) { |
| 252 | | if (max_changed) min_lenght = max_lenght-1; |
| 253 | | else max_lenght = min_lenght+1; |
| 254 | | } |
| 255 | | |
| 256 | | if (min_lenght<1) min_lenght = 1; |
| 257 | | |
| 258 | | root->awar(AWAR_PRIMER_DESIGN_LENGTH_MIN)->write_int(min_lenght); |
| 259 | | root->awar(AWAR_PRIMER_DESIGN_LENGTH_MAX)->write_int(max_lenght); |
| | 245 | int min_length = root->awar(AWAR_PRIMER_DESIGN_LENGTH_MIN)->read_int(); |
| | 246 | int max_length = root->awar(AWAR_PRIMER_DESIGN_LENGTH_MAX)->read_int(); |
| | 247 | |
| | 248 | if (max_length<1) max_length = 1; |
| | 249 | if (min_length<1) min_length = 1; |
| | 250 | |
| | 251 | if (min_length >= max_length) { |
| | 252 | if (max_changed) min_length = max_length-1; |
| | 253 | else max_length = min_length+1; |
| | 254 | } |
| | 255 | |
| | 256 | if (min_length<1) min_length = 1; |
| | 257 | |
| | 258 | root->awar(AWAR_PRIMER_DESIGN_LENGTH_MIN)->write_int(min_length); |
| | 259 | root->awar(AWAR_PRIMER_DESIGN_LENGTH_MAX)->write_int(max_length); |