| 1805 | } |
| 1806 | |
| 1807 | void ImageViewer::updateImageVectorGraphics(string_view imageName, bool shallSelect, bool append, span<const VgCommand> commands) { |
| 1808 | auto image = imageByName(imageName); |
| 1809 | if (!image) { |
| 1810 | tlog::warning("Vector graphics of image {} could not be updated, because it does not exist.", imageName); |
| 1811 | return; |
| 1812 | } |
| 1813 | |
| 1814 | tlog::debug( |
| 1815 | "Updating vector graphics: image=\"{}\" commands.size={} append={} shallSelect={}", imageName, commands.size(), append, shallSelect |
| 1816 | ); |
| 1817 | |
| 1818 | image->updateVectorGraphics(append, commands); |
| 1819 | if (shallSelect) { |
| 1820 | selectImage(image); |
| 1821 | } |
| 1822 | } |
| 1823 | |
| 1824 | void ImageViewer::selectImage(const shared_ptr<Image>& image, bool stopPlayback) { |
| 1825 | // Once the selected image has been updated, reflect that in the image info window. |
no test coverage detected