result.x = rect.get_right();
break;
default:
-#ifndef NDEBUG
- throw std::runtime_error("Invalid anchor point found");
-#endif
log_warning << "Invalid anchor point found" << std::endl;
result.x = rect.get_left();
break;
result.y = rect.get_bottom();
break;
default:
-#ifndef NDEBUG
- throw std::runtime_error("Invalid anchor point found");
-#endif
log_warning << "Invalid anchor point found" << std::endl;
result.y = rect.get_top();
break;
result.x = destrect.get_right() - width;
break;
default:
-#ifndef NDEBUG
- throw std::runtime_error("Invalid anchor point found");
-#endif
log_warning << "Invalid anchor point found" << std::endl;
result.x = destrect.get_left();
break;
result.y = destrect.get_bottom() - height;
break;
default:
-#ifndef NDEBUG
- throw std::runtime_error("Invalid anchor point found");
-#endif
log_warning << "Invalid anchor point found" << std::endl;
result.y = destrect.get_top();
break;