Skip to content

Commit

Permalink
dont warn, stop and give a clear message
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgohel committed Apr 19, 2021
1 parent 8e8cb26 commit 04bf439
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: officer
Type: Package
Title: Manipulation of Microsoft Word and PowerPoint Documents
Version: 0.3.19.001
Version: 0.3.19.002
Authors@R: c(
person("David", "Gohel", role = c("aut", "cre"),
email = "david.gohel@ardata.fr"),
Expand Down
3 changes: 2 additions & 1 deletion R/ph_location.R
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,8 @@ fortify_location.location_label <- function( x, doc, ...){
}

if( nrow(props) > 1) {
warning("more than a row have been selected")
stop("Placeholder ", shQuote(x$ph_label),
" in the slide layout is duplicated. It needs to be unique.")
}

props <- props[, c("offx", "offy", "cx", "cy", "ph_label", "ph", "type")]
Expand Down

0 comments on commit 04bf439

Please sign in to comment.