| 907 | |
| 908 | |
| 909 | void Map::getSelectionToSymbolCompatibility(const Symbol* symbol, bool& out_compatible, bool& out_different) const |
| 910 | { |
| 911 | out_compatible = symbol && !object_selection.empty(); |
| 912 | out_different = false; |
| 913 | |
| 914 | if (symbol) |
| 915 | { |
| 916 | for (const Object* object : object_selection) |
| 917 | { |
| 918 | if (!symbol->isTypeCompatibleTo(object)) |
| 919 | { |
| 920 | out_compatible = false; |
| 921 | out_different = true; |
| 922 | return; |
| 923 | } |
| 924 | else if (symbol != object->getSymbol()) |
| 925 | out_different = true; |
| 926 | } |
| 927 | } |
| 928 | } |
| 929 | |
| 930 | void Map::deleteSelectedObjects() |
| 931 | { |
no test coverage detected