MCPcopy Create free account
hub / github.com/bluescan/tacentview / FindImage

Method FindImage

Src/TacentView.cpp:828–841  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

826
827
828Viewer::Image* Viewer::FindImage(const tString& filename)
829{
830 Image* img = nullptr;
831 for (Image* si = Images.First(); si; si = si->Next())
832 {
833 if (si->Filename.IsEqualCI(filename))
834 {
835 img = si;
836 break;
837 }
838 }
839
840 return img;
841}
842
843
844bool Viewer::SetCurrentImage(const tString& currFilename, bool forceReload)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected