Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuSanka <yusanka@gmail.com>2019-05-14 10:40:04 +0300
committerYuSanka <yusanka@gmail.com>2019-05-14 11:08:52 +0300
commitb30405b57254856444afcb13296fb2e10dd6f0f0 (patch)
treebb9bff5ddaa7c0eba55571df9e238f3eca6a2d91 /src/slic3r/GUI/BitmapCache.cpp
parent406d4c6c1ab2d64c59abe7e7437e39dbd64c0c9f (diff)
Fixed typo (image grayscaling)
Diffstat (limited to 'src/slic3r/GUI/BitmapCache.cpp')
-rw-r--r--src/slic3r/GUI/BitmapCache.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/slic3r/GUI/BitmapCache.cpp b/src/slic3r/GUI/BitmapCache.cpp
index efa35a511..3e8924143 100644
--- a/src/slic3r/GUI/BitmapCache.cpp
+++ b/src/slic3r/GUI/BitmapCache.cpp
@@ -189,7 +189,7 @@ wxBitmap* BitmapCache::insert_raw_rgba(const std::string &bitmap_key, unsigned w
}
if (grayscale)
- image.ConvertToGreyscale(m_gs, m_gs, m_gs);
+ image = image.ConvertToGreyscale(m_gs, m_gs, m_gs);
return this->insert(bitmap_key, wxImage_to_wxBitmap_with_alpha(std::move(image), scale));
}
@@ -220,7 +220,7 @@ wxBitmap* BitmapCache::load_png(const std::string &bitmap_name, unsigned int wid
image.Rescale(width, height, wxIMAGE_QUALITY_BILINEAR);
if (grayscale)
- image.ConvertToGreyscale(m_gs, m_gs, m_gs);
+ image = image.ConvertToGreyscale(m_gs, m_gs, m_gs);
return this->insert(bitmap_key, wxImage_to_wxBitmap_with_alpha(std::move(image)));
}