-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: plot_layout_properties() labeling still incorrect for labels= FALSE
#604
Comments
markheckmann
added a commit
to markheckmann/officer
that referenced
this issue
Sep 11, 2024
markheckmann
added a commit
to markheckmann/officer
that referenced
this issue
Sep 11, 2024
markheckmann
added a commit
to markheckmann/officer
that referenced
this issue
Sep 11, 2024
The last suggestion has got its own issue now: #606 |
As of PR #608 , |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The assignments to the phs in
plot_layout_properties(..., labels = FALSE)
are (sometimes) still incorrect.This bug has been around longer and was supposed to be fixed in PR #600, but this appears not to be the case. The problem went unnoticed, because the tests do not cover problematic cases.
Bug
The file four_content.pptx has one layout called
Four Content
with four body placeholders showing the problem. The bug exists in both, the CRAN and the dev version, although with differences.CRAN-Version (0.6.6)
DEV-Version
Analysis
The reason appears to lie in these lines from pptx_informations.R (see below): The
labels
are ordered and adjusted without reordering the other columns ofdat
, resulting in a mismatch.Additional UX note
Filling a ph using
ph_location_type()
works correctly (for CRAN and Dev). However, assigning the type id in the order of the internal placeholder id does not guarantee an intuitive order as shown in the image below for type body (the four main content phs).Suggestions
layout_properties()
output, so it is transparent for the user.layout_properties()
as of PR fix: layout_properties() returns all phs for multiple masters (close #597) #600id
consistent across functionslayout_properties()
,plot_layout_properties()
, andph_location_type()
.@davidgohel, if okay for you, I will open an issue and make a suggestion.
The text was updated successfully, but these errors were encountered: