Skip to content

Commit 08f2342

Browse files
committed
fix qtree list bug when rescale!
1 parent d24ea2a commit 08f2342

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "WordCloud"
22
uuid = "6385f0a0-cb03-45b6-9089-4e0acc74b26b"
33
authors = ["guoyongzhi <momoshanghan@163.com>"]
4-
version = "0.6.5"
4+
version = "0.6.6"
55

66
[deps]
77
ColorSchemes = "35d6a980-a343-548e-a6ea-1d62b119f2f4"

src/wc-method.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ function generate!(wc::WC, args...; retry=3, krags...)
100100
for r in 1:retry
101101
if r != 1
102102
rescale!(wc, 0.97)
103+
qtrees = [wc.maskqtree, wc.qtrees...]
103104
dens = textoccupied(getwords(wc), getfontsizes(wc), getfonts(wc))/wc.params[:groundoccupied]
104105
println("#$r. try scale = $(wc.params[:scale]). The density is reduced to $dens")
105106
else

0 commit comments

Comments
 (0)