Compare commits

..

No commits in common. "e48954175daff116bbc4c82501468b3f5a8aeb83" and "6494c2b9af9f00f1b24de194e021d2f7fdf23bd4" have entirely different histories.

2 changed files with 0 additions and 20 deletions

View File

@ -197,25 +197,6 @@ bool LayerStyleContainer::dropStyle(const QString& styleName)
return true;
}
float LayerStyleContainer::boundingBoxAffectValue() {
float maxLineWidth = 0;
auto strokeStyle = styles[StrokeElementLayerStyle::displayName()];
if (strokeStyle != nullptr) {
auto strokeElementLayerStyle = dynamic_cast<StrokeElementLayerStyle*>(strokeStyle.get());
if (strokeElementLayerStyle != nullptr) {
auto leftStyleStroke = strokeElementLayerStyle->strokePair.first;
auto rightStyleStroke = strokeElementLayerStyle->strokePair.second;
if (leftStyleStroke != nullptr) {
maxLineWidth = std::max(maxLineWidth, leftStyleStroke->halfWidth);
}
if (rightStyleStroke != nullptr) {
maxLineWidth = std::max(maxLineWidth, rightStyleStroke->halfWidth);
}
}
}
return maxLineWidth;
}
inline size_t LayerStyleContainer::getHash() const
{
return hash;

View File

@ -56,7 +56,6 @@ public:
std::unique_ptr<LayerStyle> makeUnusedStyle(const QString& styleName) const;
bool useStyle(const std::shared_ptr<LayerStyle>& style);
bool dropStyle(const QString& styleName);
float boundingBoxAffectValue();
size_t getHash() const;
/**