- while(!result)
- {
- result = input.read_tag();
-
- if(!result)
- {
- if(input.tag.title_is("GRAPHICEQ"))
- {
- config.window_size = input.tag.get_property("WINDOW_SIZE", config.window_size);
- if(is_defaults())
- {
- w = input.tag.get_property("W", w);
- h = input.tag.get_property("H", h);
- }
- }
- else
- if(input.tag.title_is("POINT"))
- {
- GraphicPoint *point;
- config.points.append(point = new GraphicPoint);
- point->freq = input.tag.get_property("X", 0);
- point->value = input.tag.get_property("Y", 0.0);
+ while( !(result = input.read_tag()) ) {
+ if(input.tag.title_is("GRAPHICEQ")) {
+ config.window_size = input.tag.get_property("WINDOW_SIZE", config.window_size);
+ if(is_defaults()) {
+ w = input.tag.get_property("W", w);
+ h = input.tag.get_property("H", h);