Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb5a389d

Browse files
fix bug for a case when all unbounded size modifiers are zero
1 parent1965d6e commitb5a389d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

‎blobstamper/galley.cpp‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,19 @@ GalleyVector::extract_internal(Blob &blob)
255255
}
256256
size_modifiers.push_back(modifier);
257257
}
258+
if (total_unbounded_modifiers ==0)// If we got all zeros, will treat them as all 1. Will work well, and give same result of equal sizes of all parts
259+
{
260+
total_unbounded_modifiers =0;
261+
for(int i=0; i<stamps.size();i++)
262+
{
263+
StampBase &s = stamps[i];
264+
if (s.isUnbounded())
265+
{
266+
size_modifiers[i] =1;
267+
total_unbounded_modifiers +=1;
268+
}
269+
}
270+
}
258271
double k_variated =1;
259272
double k_unbounded =1;
260273

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp